Force a postback from asp code behind
-
I need to force a postback from the asp code behind. Can this be done?
-
I need to force a postback from the asp code behind. Can this be done?
Postback's are generally triggered based on some action from user. Since you have not explained your scenario on what you want and why you are in need of such a scenario it is difficult to suggest alternative or other possible way. Right now, if you are aware of page Life cycle, all you are trying to ask/do by second postback is repeat few of already executed events and just raise the previous event handlers again. Still if you are looking for ways to do, possible ways: 1. Raise a postback from Javascript. Use RegisterClientScript from code behind to trigger it. 2. You can do a Response.Redirect(Request.RawUrl); // transferring the execution back to same page
Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]