Response.Redirect()
方法。要在按钮点击事件中跳转到另一个页面,可以这样编写代码:,,``csharp,protected void Button1_Click(object sender, EventArgs e),{, Response.Redirect("~/TargetPage.aspx");,},
`,,这段代码将在用户点击按钮时,将他们重定向到
TargetPage.aspx`页面。Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.