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.