简体   繁体   English

组合ASP.NET Web表单

[英]Combining ASP.NET webforms

I have created 9 webforms in a project called "PIMS". 我在一个名为“ PIMS”的项目中创建了9个Web表单。 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. 我如何将所有9个Web表单链接在一起,将所有表单呈现给用户,以便他们可以选择要处理的表单。 Please suggest. 请提出建议。

Kind regards, 亲切的问候,

This is for winform only First form is close and other form is open this way 这仅适用于winform第一个表单已关闭,其他表单已打开

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

frmHome is ur another from thats way u can open and close ur all forms. frmHome是您的另一种方式,因此您可以打开和关闭所有表格。

You can link any page or form by tag Anchor 您可以通过标记锚链接任何页面或表单

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

or any page 或任何页面

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

or you can use ASP.NET Controls like HyperLink 或者您可以使用ASP.NET控件(例如HyperLink)

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

in advance you could use Javascript plugins to make menu with motions and good user experience for example http://jqueryui.com/menu/ 您可以预先使用Javascript插件制作带有动感和良好用户体验的菜单,例如http://jqueryui.com/menu/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM