我无法在 asp.net 中使用 Response.Redirect("url",false)
重定向到其他页面。谁能告诉我出了什么问题吗?
Response.Redirect(@"~/Pages/Dashboard.aspx", false);
最佳答案
我认为你必须输入网址,而不是文件路径。所以应该是:
Response.Redirect("/Pages/Dashboard.aspx", false);
Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.
就像这里解释的那样:msdn
关于c# - 无法使用 Response.Redirect 调用不同页面 ("url",false),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32331666/