i am working on web application asp.net c#, in gridview textbox(editable) textchanged not firing, textbox event fires when checking checkbox, and checkbox event fires on second click only, please give me any sugesstions........
asp.net c# gridview textbox event eats up all other events
hi,
Jaganathan BantheswaranPosted Oct 17, 2013, 6:13 AM
Veena RaviPosted Oct 17, 2013, 5:14 AM
i tried onkeyup event, actually here the postback is happening for every text entering in textbox.......(checking checkbox event) any solution
Jaganathan BantheswaranPosted Oct 17, 2013, 4:32 AM
The OnTextChanged will only fire if you make a change in the textbox and also tab out[unfocus] of the field. OR you can say AutoPostBack on text box will trigger postback when the focus is lost from the text box. That's why when the textbox is unfocused, ontextchanged event is firing.
It is better to handle the event in client side like
or use keyup instead of onchange. keyup will execute the function when you key-in into the textbox
Veena RaviPosted Oct 17, 2013, 3:35 AM
thanks for ue replay.... i am using gridview which contains editable textbox and if text is edited then if i clcik checkbox or button, the textbox text changed event is fired instead of checkbox or button event.......
in code behind.....
i am doing some calculation in the function Amount_TextChanged()......
Jaganathan BantheswaranPosted Oct 17, 2013, 3:23 AM
Can you post html markup & event binding?