4
Reply

unable to retain a value of a textbox which is in a gridview

Ask a question
srinath

srinath

13y
7.5k
1
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.....

Answers (4)