I need to cancel PostBack on the server side (I know how to do that on client side but this is not what I need).
That's my current solution.
protected void Page_Load(object sender, System.EventArgs e){
if(ShouldBeCanceled){
Response.Redirect(Request.Url.ToString());
Response.End();
}
}
Is there some kind of more intelligent way (not depending on JavaScript client support) way?
That's my current solution.
protected void Page_Load(object sender, System.EventArgs e){
if(ShouldBeCanceled){
Response.Redirect(Request.Url.ToString());
Response.End();
}
}
Is there some kind of more intelligent way (not depending on JavaScript client support) way?