Say if i have a master page in that i have a button if user clicks on the button he should be redirected to new asp page how can i do that.pls help me out
如果我有一个母版页,我有一个按钮,如果用户点击按钮,他应该被重定向到新的asp页面,我该怎么做。请帮助我
4 个解决方案
#1
3
Try this in the code-behind for the button.
在按钮的代码隐藏中尝试这个。
Response.Redirect("~/SecondPage.aspx");
#2
1
Response.Redirect("your_url_here");
or
Server.Transfer("path_goes_here");
see http://www.developer.com/net/asp/article.php/3299641/ServerTransfer-Vs-ResponseRedirect.htm
#3
1
There's two options:
有两种选择:
Response.Redirect("nextPage.aspx");
Server.Transfer("nextPage.aspx");
Both have disticnt advantages, so research and decide what works best for you.
两者都有优势,所以研究并决定什么最适合你。
#1
3
Try this in the code-behind for the button.
在按钮的代码隐藏中尝试这个。
Response.Redirect("~/SecondPage.aspx");
#2
1
Response.Redirect("your_url_here");
or
Server.Transfer("path_goes_here");
see http://www.developer.com/net/asp/article.php/3299641/ServerTransfer-Vs-ResponseRedirect.htm
#3
1
There's two options:
有两种选择:
Response.Redirect("nextPage.aspx");
Server.Transfer("nextPage.aspx");
Both have disticnt advantages, so research and decide what works best for you.
两者都有优势,所以研究并决定什么最适合你。