c# - Cannot reset fields after a postback -


I am using the JavaScript function to reset some fields in my .aspx webpage. When the page loads, it works first time but after postback it does not work at all.

Can anyone explain me?

Thanax

I think you did it in the form of asp.net-ajax If this is only a partial postback that you are doing, then the whole page is not reloaded and javascript functions are fire

If this is the case, then specify Try using ClientScript.RegisterStartupScript .

Otherwise, code samples will help us answer.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -