execute client code when form submitted

  • Thread starter Thread starter sklett
  • Start date Start date
S

sklett

I would like to show an animated gif and display a message while a form is
being posted. I went to add an onclick handler to the button and realized
there already was one for the postback. I still want my form to post like a
regular asp.net form but I would like to execute some client script before
it does. What is the "Best Practice" way to handle this? Any tips or
suggestions will be appreciated.

Thank you,
Steve
 
If you are using ASP.NET 2.0, Button control has a OnClientClick attribute
to run client-side scripts.

I would like to show an animated gif and display a message while a form is
being posted. I went to add an onclick handler to the button and realized
there already was one for the postback. I still want my form to post like a
regular asp.net form but I would like to execute some client script before
it does. What is the "Best Practice" way to handle this? Any tips or
suggestions will be appreciated.

Thank you,
Steve
 
Back
Top