如何在所有网页中找到主页按钮,aboutus按钮,carrers按钮 [英] how to palce a home button,aboutus button,carrers button in all the webpages

查看:130
本文介绍了如何在所有网页中找到主页按钮,aboutus按钮,carrers按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2012.即时通讯使用的是高级页面,如果我想在我的所有网页上显示主页,公司简介,clicents,aboutus等标题按钮,我该怎么办?,是否有任何机会或动态或者任何方式



请告诉我先生

解决方案

对于这样的事情,ASP.NET有功能称为母版页。请参阅: http://msdn.microsoft.com/en-us/library/wtxbf3hh.ASPX [ ^ ]。



但是也不要忘记ASP.NET允许您生成任何内容并将其发送到HTTP响应中的客户端。一旦开发了这样的代码,就可以将它重用于任意数量的页面。这个想法将为重用某些页面片段的问题提供最通用的解决方案。



-SA






你可以找到这个链接 [ ^ ]帮助。

这个 [ ^ ]作为参考。

希望这可以帮助你位。



问候,

RK




您可以在应用程序中使用母版页,或者您可以创建用户控件并在页面上注册,或者您可以使用.Net控件的asp:menu控件。



菜单控制:



<啊REF = http://www.dotnetcode.in/2011/06/creating-aspnet-menu-control-using-css.html> http://www.dotnetcode.in/2011/06/creating-aspnet- menu-control-using-css.html [ ^ ]





用户控制:



http://msdn.microsoft.com/en-us/library/ sbz9etab.aspx [ ^ ]

i m using visual studio 2012. i m using masterpages, if i want to display a header buttons like home,company profile, clicents, aboutus ect in all my web pages, what should i do?, is there any chance programmatically or dynamically, or any way

please tell me sir

解决方案

For such things, ASP.NET has the feature called "master page". Please see: http://msdn.microsoft.com/en-us/library/wtxbf3hh.ASPX[^].

But also don't forget that ASP.NET allows you to generate any content and send it to the client side in HTTP response. Once you develop such code, you can reuse it for any number of pages. That idea would provide the most general solution to the problem of the reuse of some page fragment.

—SA


Hi,

You could find this link[^] helpful.
And this[^] as reference.
Hope this helps you a bit.

Regards,
RK


Hi,
you can use the master page in your application or you can create a user control and register on your page for this or you can use asp: menu control from .Net controls.

Menu control :

http://www.dotnetcode.in/2011/06/creating-aspnet-menu-control-using-css.html[^]


User control :

http://msdn.microsoft.com/en-us/library/sbz9etab.aspx[^]


这篇关于如何在所有网页中找到主页按钮,aboutus按钮,carrers按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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