How to redirect a again on the same page with out hard-coding in asp.net?
My page has a cancel button, and when I click on it, I want to redirect to the same page. How do I do that?
This is a very big page with wizard controls and view states. I need reload the page, then I can clear viewstate. So, 开发者_Python百科please tell me how to redirect to the same page when I click on the cancel button.
this.Response.Redirect(this.Request.Url.ToString());
Response.Redirect(Request.Path);
Response.Redirect(Request.RawUrl);
Response.Redirect(Request.Url.ToString());
精彩评论