User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 374,181 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,403 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 775 | Replies: 6
Reply
Join Date: Feb 2008
Posts: 24
Reputation: brightline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
brightline brightline is offline Offline
Newbie Poster

Master Page Links Problem

  #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 4:07 am. Reason: Extensive use of colour tags is not good idea
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 1,054
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

  #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  
Join Date: Feb 2008
Posts: 24
Reputation: brightline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
brightline brightline is offline Offline
Newbie Poster

Re: Master Page Links Problem

  #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  
Join Date: Sep 2007
Posts: 1,054
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

  #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  
Join Date: Feb 2008
Posts: 24
Reputation: brightline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
brightline brightline is offline Offline
Newbie Poster

Re: Master Page Links Problem

  #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  
Join Date: Sep 2007
Posts: 1,054
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Master Page Links Problem

  #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  
Join Date: Aug 2005
Location: Ohio
Posts: 204
Reputation: plazmo is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Master Page Links Problem

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC