更新时间:2023-11-27 18:49:40
在按钮的onclick事件下使用它:
Response.Redirect("bla bla");
Use this under the onclick event of your buttons:
Response.Redirect("bla bla");
尝试
Response.Redirect [ Server.Transfer [
Try
Response.Redirect[^]
OR
Server.Transfer[^]
如果在您的.aspx页面上有一组链接:
If on your .aspx page you have a set of links:
<a id="link1" runat="server/><br mode=" hold=" /><a id=" link2=" runat=" server="" />
然后,您可以在代码中的 OnPreRender 中:
Then you can in your code behind in the OnPreRender:
link1.Href = "www.codeproject.com";
link1.InnerText = "The Code Project";
link2.Href = "msdn.microsoft.com";
link2.InnerText = "MSDN";
您可以使用< asp:hyperlink ...>来做同样的事情.标签,除了设置了NavigateUrl和Text属性.
You can do the same thing with a <asp:hyperlink ...> tag except you set the NavigateUrl and Text properties.