How to refresh a page after file upload?

File upload and page refresh in asp.net.

You can simply by below solution.

You simply add this below FileUp.SaveAs:
Response.Redirect(“mypage.aspx”);

‘mypage.aspx’ is the name of current aspx page.You can use responce redirect to refresh the page. If there are querystring variable then follow below.

Response.Redirect(“mypage.aspx” + Request.QueryString.ToString());

About the Author

avatar