Click here to Skip to main content
16,004,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :)
Posted
Comments
Solai Raja 13-Mar-15 6:02am    
you could use the ASP.Net's Master page.
Shivangi_K 13-Mar-15 6:21am    
Awesome, seems like a solution for the 'home' bit... Do we have a similar functionality for going back a step? as in every page shud be able to go back to the last page
F-ES Sitecore 13-Mar-15 7:26am    
If the user wants to go "back" they'll use the back button on their browser.
Solai Raja 13-Mar-15 6:25am    
As like same place anchor in your master page, when you click on the anchor trigger javascript to go back.
refer this
http://www.w3schools.com/jsref/met_his_back.asp

1 solution

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.
 
Share this answer
 
Comments
Shivangi_K 17-Mar-15 5:25am    
Hi, everything ele is alright but I am kinda in a fix, you see there are different kinds of users for this application, because of which the home page is different...I can't configure that in the master page, or can I using the session element??
Shivangi_K 17-Mar-15 5:30am    
ahh, I see I can create different master pages then :) got it thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900