TextBox_ChangedText event fires but button_click does not fire

  • Thread starter Pushpadant Kacha via .NET 247
  • Start date
P

Pushpadant Kacha via .NET 247

hi,
I have an application where i am using a textbox and a submitbutton.
the autopostback property of the textbox is set to true.
now if there is a change in the textbox then thetexbox_changetext event is fired(provided it has lost focus) butif the textbox is changed and before losing the focus if thesubmit button is clicked...only the textbox_change event isfired but SUBMIT Button EVENT is NOT fired....i dont know how tohandle both the events (textbox_change and button_click) at thesame time...
if someone tries this ...for the first both events may fire butwithout closing the application try it more than once ...it doesnot work

thanks
 
O

One Handed Man \( OHM - Terry Burns \)

Viewstate is what determines if the text has changed or not. If you have
Autopostback set to true, it is processing this event instead, this is
correct and makes sense.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

hi,
I have an application where i am using a textbox and a submit button.
the autopostback property of the textbox is set to true.
now if there is a change in the textbox then the texbox_changetext event is
fired(provided it has lost focus) but if the textbox is changed and before
losing the focus if the submit button is clicked...only the textbox_change
event is fired but SUBMIT Button EVENT is NOT fired....i dont know how to
handle both the events (textbox_change and button_click) at the same time...
if someone tries this ...for the first both events may fire but without
closing the application try it more than once ...it does not work

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top