Button Event Occur when i refresh the page
-
Hi all, I have design the web site with the some Control. If i press the button then the New textbox will be created. This is Working fine.But when i refresh the page after click the button also the textbox created. Kindly help me.:cool: Regards, A Jabeer Ali.
Regards, A Jabeer Ali
-
Hi all, I have design the web site with the some Control. If i press the button then the New textbox will be created. This is Working fine.But when i refresh the page after click the button also the textbox created. Kindly help me.:cool: Regards, A Jabeer Ali.
Regards, A Jabeer Ali
When you refresh, you do the postback again, thus the button press will occur again.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
When you refresh, you do the postback again, thus the button press will occur again.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
When you refresh, you do the postback again, thus the button press will occur again.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hello Christian, Is there some kind of Application.DoEvents() call, responsible for that? All the best, Martin
-
The Button Press Should not happen when the user hits the refresh Button.
Regards, A Jabeer Ali
-
The Button Press Should not happen when the user hits the refresh Button.
Regards, A Jabeer Ali
This happens because you are refreshing the last operation - which was the javascript doPostback operation. If you don't want this to happen, I would suggest that you change the architecture so you don't need the postback to happen.
Deja View - the feeling that you've seen this post before.
-
This happens because you are refreshing the last operation - which was the javascript doPostback operation. If you don't want this to happen, I would suggest that you change the architecture so you don't need the postback to happen.
Deja View - the feeling that you've seen this post before.
-
Hi all, I have design the web site with the some Control. If i press the button then the New textbox will be created. This is Working fine.But when i refresh the page after click the button also the textbox created. Kindly help me.:cool: Regards, A Jabeer Ali.
Regards, A Jabeer Ali
use if not Page.postback
-
use if not Page.postback
-
Well, you may want to look into Ajax. This doesn't use postbacks.
Deja View - the feeling that you've seen this post before.