Forcing a postback

shaun.breach picture shaun.breach · Nov 21, 2011 · Viewed 105k times · Source

Is there a way to force a postback in code?

I'm looking to force the raising of a postback from a method in the c# code behind my asp.net web application.

Answer

live-love picture live-love · Feb 27, 2012

You can try redirecting to same page.

Response.Redirect(Request.RawUrl);