Click here to Skip to main content
15,912,507 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am having a gridview with dropdownlist and textbox controls.

I am generating a value in the textbox2 depending on the textbox1 value using the javascript in every row of gridview. In onblur() function of textbox2, I am disabling the textbox2.

Before textboxes, I am having dropdownlist's in every row of gridview. when I disable the textbox2 in the first row and select the value of dropdownlist in the second row, the value of textbox2 in first row is not visible.

I tried by using the viewstate but I am unable to retain the value.

I searched in google but I could get the appropriate solution

Please help me.....
Posted
Comments
Arindam Tewary 15-Dec-10 4:20am    
Surprised!! In case you got the appropriate solution what do you want ?? :)Is that you have missed the word "not"???
Slacker007 15-Dec-10 7:26am    
@Arindam: what the hell are you talking about. I think this is a legit question.

1 solution

Have you used the asp:UpdatePanel?

When I am working with Drop Down Lists and Textboxes and ASP.NET I use Update Panels around the control that I want to update and then set the trigger to be the control (in your case the Textbox perhaps?)

Try surrounding this area of yous page with the update panel, and see how that works.

I wonder if this article posted on CodeProject will help you.
http://www.codeproject.com/KB/webforms/GridViewFilter.aspx[]

Good luck

Rob
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900