如何在不手动操作的情况下在所有asp.net页面中获取一个超链接? [英] How do I get one hyperlink in all my asp.net pages without doing it manually?

查看:78
本文介绍了如何在不手动操作的情况下在所有asp.net页面中获取一个超链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想知道是否有自动方式在我的所有dot.net页面上获取相同的超链接,而不是手动执行在每一页上。



例如:



如果我想要一个Home的链接将控件带回主页的所有页面...有没有办法在不打字的情况下手动将每个页面连接起来?



同样,返回功能...请给我一些想法



谢谢:)

Hi all,

I wanted to know if there is an automated way of getting the same hyperlink on all my dot.net pages, instead of doing it manually on every page.

For eg:

If I want a link that says "Home" on all the pages which brings back the control to the Homepage...is there a way to do it without typing and linking it on every page manually????

Similarly, the "Back" functionality...Please give me ideas

Thanks :)

推荐答案

在应用程序中使用母版页包含所有导航链接以及页眉或页脚。并将您的变量内容放在内容页面中。



如果是ASP.NET,请使用Layout Page来执行相同操作。
Use a Master Page in your application to contain all navigation links as well as the header or footer. And put your variable contents in content page.

In case of ASP.NET use Layout Page to do the same.


这篇关于如何在不手动操作的情况下在所有asp.net页面中获取一个超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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