aspx page to redirect to a new page

后端 未结 8 1644
予麋鹿
予麋鹿 2020-12-02 19:53

What is the code required to redirect the browser to a new page with an ASPX page?

I have tried this on my page default.aspx :

<% Response.Redirec         


        
8条回答
  •  执念已碎
    2020-12-02 20:23

    Darin's answer works great. It creates a 302 redirect. Here's the code modified so that it creates a permanent 301 redirect:

    <%@ Page Language="C#" %>
    
    

提交回复
热议问题