473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

TextBox_ChangedText event fires but button_click does not fire

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

--------------------------------
From: Pushpadant Kacha

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>7v/eZz1P4k2eyitI0HO6ow==</Id>
Nov 21 '05 #1
1 1949
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

"Pushpadant Kacha via .NET 247" <an*******@dotnet247.com> wrote in message
news:eu**************@TK2MSFTNGP09.phx.gbl...
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

--------------------------------
From: Pushpadant Kacha

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>7v/eZz1P4k2eyitI0HO6ow==</Id>
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Mayers | last post by:
Hi, I have an application that has (for the sake of argument) 2 (MDI) windows open. If I click into a textbox on FormA then the 'Enter' event for that TextBox fires, great! However, if I then...
2
by: JayDee | last post by:
After a user enters data into a field, I need to populate other controls on the form, based on the user entry. I have to use either Leave, Validating or Validated, and I take it I can't use...
5
by: Maxine G | last post by:
I have two forms, a menu and a data entry form. The entry form is bound to a query against linked SQL server tables. In the deactivate event, I have some code which asks the user if they want to...
3
by: Raul M. Colon | last post by:
Is possible to assign a click event to a button control in a Web form just pressing the return key? Something like windows forms where you can assign this action to a default control. For example,...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
3
by: Tim Thomas | last post by:
Hi, I am very new to .NET and am in the process of building my first web application. I will briefly describe what i am trying to achieve: I have a system where suppliers register their...
6
by: Michael Johnson Jr. | last post by:
I am trying to handle a button click event, which updates a web control table with data. The button is dynamically created in the table itself. When I call updateTable() in the Page_Load the new...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
8
by: Paul | last post by:
Hi, In a class i built, i fire an event when a field changes. In a webform that has an instance of the class, the event (from the class) is fired and the code is executed. However, my webpage...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.