Time delay before redirect

后端 未结 2 597
栀梦
栀梦 2021-02-04 08:03

I create a register page for my web application. The application require that after user successfully register a new account, the page will show a message \"Register successfull

2条回答
  •  不要未来只要你来
    2021-02-04 08:39

    Only meta tag is enough to redirect to another page

    ad meta tag dynamically

    Response.AddHeader("REFRESH", "5;URL=~/account/login");

    This code will ad a meta tag to current page and your page will redirect to another page in specified time like above.

提交回复
热议问题