开发者

OnTextChanged even not working as expected in GridView

I have a textbox in a gridview. The column template for the gridview binds data to the textbox. The original value will be called X. If I change the text in the textbox inside the grid view to Y the onTextChanged event will f开发者_StackOverflow中文版ire when I press a button. After I have changed the text to Y, and the event has fired, the event will continue to fire if each time i click the button. If I change the text to the orignal value, X, the onTextChanged event stops firing.

There are textboxes outside of the gridView. They all call onTextChanged as expected; When text is changed from what was there before.

How can I make the onTextChanged act like its expected instead of an onTextIsNotOrignalValue?


Have you tried to enable ViewState for the text box on the grid view? I am not sure if you have to enable Viewstate on the gridview itself.


Did you set AutoPostBack of Textbox to True?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜