结合ASP.NET网络表单 [英] Combining ASP.NET webforms

查看:74
本文介绍了结合ASP.NET网络表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在名为PIMS的项目中创建了9个webforms。我没有将任何形式联系在一起因为我不知道该怎么做。现在,当我加载并运行应用程序时,它只向我显示我选择以起始页运行的表单。如何将所有9个网络表单链接在一起,向用户显示所有表单,以便他们可以选择他们想要处理的表单。请建议。



亲切的问候,

Hi,

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,

推荐答案

您可以根据您的要求使用多种方式来实现它/>
喜欢使用菜单控件,页面上有链接按钮,点击事件可导航到所需的页面。



如果足够请标记为答案您的查询。



谢谢,

Dheeraj Gupta
You can achieve it by using several ways depending upon your requirement
like using Menu control, having link buttons on page on which click event you can navigate to the desired page.

Please mark as answer if suffice your query.

Thanks,
Dheeraj Gupta


您可以链接任何页面或表单tag Anchor



You can link any page or form by tag Anchor

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





或任何页面




or any page


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



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>





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




or you can use ASP.NET Controls like HyperLink

<asp:hyperlink id="HyperLink1" runat="server" navigateurl="form2.aspx" xmlns:asp="#unknown">HyperLink</asp:hyperlink>





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


这篇关于结合ASP.NET网络表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆