Refresh Page C# ASP.NET

后端 未结 10 816
别跟我提以往
别跟我提以往 2020-12-09 14:42

Is there a Page.Refresh type of command to refresh a page?

I don\'t want to redirect to the page or refresh in JavaScript.

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 15:11

    I think this should do the trick (untested):

    Page.Response.Redirect(Page.Request.Url.ToString(), true);
    

提交回复
热议问题