0

I have created 9 webforms in a project called "PIMS". I have not linked any form together simply because I dont know how to do that. Now when I load and run the application, it presents to me only the form that I have selected to run as "Start Page". How can I link all 9 webforms together present all the forms to users so they can choose the form they want to work on. Please suggest.

Kind regards,

4

2 回答 2

0

这仅适用于 winform 第一个表单关闭,其他表单以这种方式打开

  frmHome frm = new frmHome();
   frm.Show();
   this.Close();

frmHome 是您的另一种方式,您可以打开和关闭您的所有表格。

于 2013-07-31T06:13:21.240 回答
0

您可以通过标记锚链接任何页面或表单

<a href="form2.aspx">Click Here To Visit Form 2</a>

或任何页面

<a href="page2.html">Click Here To Visit Page 2</a>

或者你可以使用像 HyperLink 这样的 ASP.NET 控件

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="form2.aspx">HyperLink</asp:HyperLink>

提前你可以使用 Javascript 插件来制作带有动作和良好用户体验的菜单,例如http://jqueryui.com/menu/

于 2013-07-31T06:13:34.550 回答