•
•
•
•
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
![]() |
•
•
Join Date: Sep 2007
Posts: 1,054
Reputation:
Rep Power: 3
Solved Threads: 61
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.
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.
I answer questions.
I answer quickly.
I answer.
•
•
Join Date: Sep 2007
Posts: 1,054
Reputation:
Rep Power: 3
Solved Threads: 61
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.
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.
I answer questions.
I answer quickly.
I answer.
•
•
Join Date: Feb 2008
Posts: 24
Reputation:
Rep Power: 1
Solved Threads: 0
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
Similar Threads
- Softwares worth downloading (Windows NT / 2000 / XP / 2003)
- Embedding a PHPBB forum into your website : Problems/Solutions (JavaScript / DHTML / AJAX)
- iframe height (HTML and CSS)
- Big big problem (Viruses, Spyware and other Nasties)
- Yellow flashing question mark/ "X".....GRRRRRRR (Viruses, Spyware and other Nasties)
- IE error HJ log attach (Viruses, Spyware and other Nasties)
- For Mattis: Hijackthis log (Help please!) (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."
- Next Thread: Accessing ItemTemplate server control properties in a gridview



Linear Mode