| | |
Master Page Links Problem
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
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,080
Reputation:
Solved Threads: 68
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: 52
Reputation:
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.
![]() |
Similar Threads
- Softwares worth downloading (Windows NT / 2000 / XP)
- 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
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos application asp asp.net bc30451 bottomasp.net box browser button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose fileuploader fill flash form formatdecimal forms formview gridview gudi homeedition hosting iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security select silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers






