|
Use the NamingContainer property of your DropDownList
So in your OnSelectedIndexChanged you can state
(GridViewRow) row = (GridViewRow)ddl.NamingContainer;
After that you can set
GridView.SelectedIndex = row.RowIndex;
At the end of the event add a line:
GridView.SelectedIndex = -1;
you do this to prevent showing a GridView with a Selected Line in it.
|
|
|
|
|
Plz tell me is it possible to use hiddenfield with session object.i am taken some values through session and some by hidden fields.at third page it is not taken the correct value of the session variable .
thanks...gaurav
|
|
|
|
|
By debugging, check your session value where it is getting changed.
Balasubramanian K.
|
|
|
|
|
Hi all,
can someone plz help me...im trying to load my page frmHome.aspx in my ContentPlaceHolder...can anyone help please.
living life on the flip side
|
|
|
|
|
did you select 'Load Masterpage' when creating this page?
|
|
|
|
|
Hi Team,
I have created a application in Visual Studio 2005.Its a Simple application with one master page and some static pages and I have Deployed this appication on server. But i am getting this error
"The codefile attribute on the page directive is not allowed in this page."
I am not getting why i am getting this error.
Please reply me.
I need to run the application as soon as possible.
Thanks and Regards
Avesh Agarwal
|
|
|
|
|
I'm trying to deploy my asp.net 2.0 on windows server 2003. The login page of the web application (default) works fine but when I try to login, the page keeps loading and loading for a long time and I never accesses the pages after login. No error is displayed or anything the browser just hangs as if it's trying to access the page.
I'm using the membership api in asp.net and I installed the ajax extensions on the server and I created a virtual directory in the iis.
what's wrong?
|
|
|
|
|
Please check the server even viewer to see whats the error. Post whats happening else its almost impossible to help you out I guess.
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi guys its one challenging problem in gridview...,
If any one will get solution regarding this reply me immediately...,
Plz go through it...,
Thank u...,
I am trying to allocate width for my gridview columns...,
In my rowdatabound i given
e.row.cells[3].width=Unit.Pixel(100);
e.Row.Cells[3].Wrap = true;
Its not at all considered the values, what i have allocated the cell...,
Based on grid total width its automatically allocated the width for cells...,
So i changed my code like this:
e.Row.Cells[3].Attributes.Add("width", "100px;");
Its worked cool...,
Now my probs is, suppose the text is continious text...,
That time its not warpping the text based on the allocated width...,
Eg text like this : copy_text_normal_ppojkjbjhjh_bvjhvkv_jnvjhb.txt
Now this text having no gap between the letters...,
In that case its not at all wrapping my text based on the width of the cell,
How to solve this probs
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
try using this, for example
<asp:BoundField DataField="OrderID" HeaderText="OrderID" SortExpression="SortOID" NullDisplayText="none" ItemStyle-Wrap=false/>
|
|
|
|
|
no its auto generate columns...,
I cant define like that...,
I have to tell all those things in runtime only
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: Now my probs is, suppose the text is continious text...,
That time its not warpping the text based on the allocated width...,
Eg text like this : copy_text_normal_ppojkjbjhjh_bvjhvkv_jnvjhb.txt
Now this text having no gap between the letters...,
In that case its not at all wrapping my text based on the width of the cell,
Generally in this situation,Overflow style can be used.
You can add overflow attribute style and set it as scroll or hidden.
i.e
e.Row.Cells[3].Attributes.Add("overflow","scroll");
OR
e.Row.Cells[3].Attributes.Add("overflow","hidden");
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi all,
i use an ajax radgrid and i want to convert it to Excel Sheet, this error appear when i do that,
unexpected ajax response was recived from the server.
this may be caused by one of the follwoing reasons:
- server. transfer
-custom http handler
-incorrect loading of an "Ajaxified" user control.
how can Solve this error??/
thanks all
|
|
|
|
|
I have taken a DataList then Its dispaly value properly.. But i want to take another DataList in Item Template of First DataList. Ya I can Take any another data control just like.. Datagrid, Repeater.etc in Item Template of First DataList..
|
|
|
|
|
Hi,
Yes, you can use another DataList inside the first DataList's ItemTemplate field.
Thx,
Gayani
|
|
|
|
|
if u know answer of this question then give answer.. Its not issue to take only DataList i Wanna Take any Data Control To bind data from another table and show dynamecially Record below the record of First datalist....
|
|
|
|
|
hi every one .
i have a query .actually i am taking a selected value of the dropdown box in session variable .at second page the value of session variable remains 2. if i select 2 from drop down box at page 1.but at page three it gives the value of session 1 (the intial value of dropdownbox) .
plz advice what should i do.
thanks...gaurav
|
|
|
|
|
The value of a session variable doesn't change by itself, so somewhere you have code that changes it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for the response
actually i am using to pass some value from one page to other page by hidden fields and some values by using hidden fields. is it possible to use session with hidden fields.
if i am passing values using sessions only then its working otherwise not.
plz tell me .
|
|
|
|
|
Hidden fields and session variables work completely independently, so there is no conflict in using both.
A session variable is just a session variable and a hidden fields is just a hidden field. It all depends on what your code is doing with them, so without seeing any of the code it's practically impossible to say if there is something wrong with the code.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all,
I m building a site for storing user data and Files. like
Photos,Resume etc.
But i don't know how to attach files IN DATABASE.
PLEASE SEND ME CONCEPT OF OLE LINKING.
THANKS
|
|
|
|
|
Store ur file(Resume or some thing else) in under one folder...,
The file path will be in ur db column filed...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi All,
Is it possible to direct send information to report viewer without using any database.
Pls help It's needful.
Thanks
|
|
|
|
|
Hi,
You can send values in forms of parameters.
prabhakar
|
|
|
|
|
Please describe in detail.
Thanks
|
|
|
|