Cannot do response.redirect from page with Ajax controls

后端 未结 3 565
我在风中等你
我在风中等你 2021-01-16 17:07

I have a page that contains many user controls, each of which uses Ajax. When I load this page, under certain conditions, I want to do a response.redirect; however response.

3条回答
  •  情歌与酒
    2021-01-16 18:00

    Instead of using Response.Redirect, you can use Javascript to redirect.

    window.location = "[url to redirect]";
    

提交回复
热议问题