Master Page Links Problem

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 52
Reputation: brightline is an unknown quantity at this point 
Solved Threads: 0
brightline brightline is offline Offline
Junior Poster in Training

Master Page Links Problem

 
0
  #1
Mar 27th, 2008
I have a master page which contains a menu.
I want the menu's links to open in the details page instead of open in another page.

How to tell the menu link to open in the details page.
Last edited by peter_budo; Mar 27th, 2008 at 5:07 am. Reason: Extensive use of colour tags is not good idea
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

 
0
  #2
Mar 28th, 2008
you mean within the content place holder?

All you do is redirect your page to that page it is requesting. Your master page will show the same data. If you are trying to keep postbacks down, then you need to specify on those links a function to be called, in javascript. Then in javascript, set the div's content to a new location. Each content place holder creates it's own div (I believe..). Just add the <%= ControlName.ClientID %> to the portion of function being called. This will not work for those with javascript disabled.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 52
Reputation: brightline is an unknown quantity at this point 
Solved Threads: 0
brightline brightline is offline Offline
Junior Poster in Training

Re: Master Page Links Problem

 
0
  #3
Mar 30th, 2008
First, thnx 4 ur reply.

When I redirect the page it doesn't open in the content place holder.
Plz, if you can, wirte the code to do so.

Thnx in advance.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

 
0
  #4
Mar 31st, 2008
When you have a placeholder, you name is something.. lets say content1.

The page you wish that content1 to hold, let's say contentpage1, needs to have content1 in there.

so in contentpage1, you need a content tag.

Master page: ContentPlaceHolder
Content page: Content

If you do not have content in there, it will not show. If you have option strict on, you will receive an error.

If you wish for it to be dynamic without page postbacks, it is done through javascript. Create a function, call it with the onclick, and return false on your <A> links. Within this function, grab the ID of the content place holder. With that id, set the inner HTML to be the path to the file. Please, post the code of your content page and let me know the name of your content place holder on your master page.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 52
Reputation: brightline is an unknown quantity at this point 
Solved Threads: 0
brightline brightline is offline Offline
Junior Poster in Training

Re: Master Page Links Problem

 
0
  #5
Mar 31st, 2008
Thnx again.
But, the idea that I have the master page with a menu.
This menu contains some links for external websites such as :http://www.msn.com.
So when clicking on this menu item it opens in new window not in the details page.
do u understand me?
Thnx again.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

 
0
  #6
Mar 31st, 2008
Not really. Explain it in 101 for me.

Some links will open in a content place holder, the others will open in a new window. What exactly are you after.. no postbacks? I have no clue exactly what you're after.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Master Page Links Problem

 
0
  #7
Mar 31st, 2008
Master pages are not made to display external pages.
If you want to have a menu and display external sites, put a iframe where your content panel would be. and on the menu links put target="iframesID"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC