开发者

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());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜