CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/6/2007 2:19:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
EJLindsay
Asp.Net User
Repainting Master Page After Page Has Been Loaded3/6/2007 2:19:44 PM

0/0

I have a master page that contains a header and menus (hyper links).

 When a user selects an item from a drop down, I need to determine which menu items should be displayed and then repaint the menu.  The  code for doing this is in the Master Page Load event.  When a page is first loaded the menu items are displayed correctly.  Selecting from the dropdown is the problem.

 The dropdown list is on the regular page.

 When a user selects  a new item from the drop down menu, how do I set a property of the Master Page and how do get the Master Page to reload so the correct menu items will be showing?

 Thanks

Jay

 

 

Ramzi.Aynati
Asp.Net User
Re: Repainting Master Page After Page Has Been Loaded3/6/2007 2:44:48 PM

0/0

to set the peroperty u have to the following.

Let say the class for ur master page is Master1

Create a selectedindexchanged for the drop down in ur page

then

Master1 ms1 = this.Master;

ms1.property = ...

here u set the property.

Then create the following event on the master page

protected void Page_PreRender(object sender, EventArgs e)
{
     --add the code u want according to ur property... if ur asking why prerender, coz this event fires after the selectedindexchanged like this giving the chance to set ur property on ur master page.
}

Hope this helps


Regards
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.
Zhao Ji Ma - MS
Asp.Net User
Re: Repainting Master Page After Page Has Been Loaded3/9/2007 5:37:46 AM

0/0

Hi,

Are you using multiple sitemap? If so, you can change your menu by changing the datasource your menu bound to in DropDownList SelectedIndexChanged event handler.

You can configure multiple sitemap in web.config file, please check the following link for more information:

http://msdn2.microsoft.com/en-us/library/ms178426.aspx


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Painting Garden Birds With Sherry C. Nelson Authors: Sherry C. Nelson, Pages: 128, Published: 1998

Web:
Repainting Master Page After Page Has Been Loaded - ASP.NET Forums Re: Repainting Master Page After Page Has Been Loaded. 03-06-2007, 9:44 AM ... Re: Repainting Master Page After Page Has Been Loaded. 03-09-2007, 12:37 AM ...
Repainting Master Page After Page Has Been Loaded - ASP.NET Forums Repainting Master Page After Page Has Been Loaded. Last post 03-09-2007 12:37 AM by Zhao Ji Ma - MSFT. 2 replies. Sort Posts: ...
MASTER PAGE NEW.qxd example painting of the jammer in the same colour as the yachts. topsides and handle engraving the ZS showing .... rope has been pre loaded prior to this. ...
Diocese of Brandon Robert Duncan has been given a formal sentence of deposition from the ordained ..... The purpose of this main page is to provide a worldwide snapshot of ...
The KOffice Project - KOffice 1.5-beta2 Changelog Reworked loading of master page layout for the case where a non standard master ... When query design has been changed and saved, subsequent openings of a ...
Michael Sync » Using Yahoo.UI.Calendar in PageTemplate and Master ... NET Calendar in Master Page. So, You may download it from here and Also, .... 1. to ensure whether the js file has been deployed on the server or not. ...
So you want to create a home page? Creating a home page just for yourself (and your mom and SO) could be a good .... If your text has been published as a book, for example, you must check the ...
Adobe InDesign CS Tool Bar After applying the master page, you will notice the letter B. This letter indicates the master page that has been applied. ...
Developers FAQ - OpenOffice.org Wiki Mechanism of designing and implementation of master page and layout style in .... This page was last modified 14:23, 16 July 2007. This page has been ...
TOWPATH TALK FRONT master (Page 1) See page. 2. Issue 16. IT HAS become quite noticeable in our area over the. last few years that the numbers of anglers on our. towpaths have been on a ...

Videos:
www.moldytoaster.com reen_ curtain, beg to assure our readers, that the Punch scene hath taken _wing_, and that the dressing-room of the above-named characters will no lo...
www.moldytoaster.com ceding this same 5th of June, Jean Valjean, accompanied by Cosette and Toussaint had installed himself in the Rue de l'Homme Arme. A change awaited h...




Search This Site:










controling cascading style sheet load order (cascades) with asp.net 2.0 themes

problem with css validation ...

old school asp inside a contentplaceholder

how to get menu.item.value from a master page

personalization/definition of keywords in asp.net application

folder exceptions in app_theme

"internal master page" 's page_load event doesn't fired?

how do retain/change ids

hiding menu options dynamically according to user roles

communication contentpage -> masterpage

right click ot treeview

asp.net outputting stylesheets twice in the html source

two questions about master pages and navigation

xmlsitemapprovider more....flexible?

how do i access a webusercontrols linkbutton from a content page

how to remove the arrow mark from the menu navigation control

masterpage control code

access to a label control into a master page

changing cssclass of label in a masterpage with content page script.

accessing user controls from pages within master pages

menu with windows authentication and groups

embedding an applet in a content page

master pages do not display content immediately

changing masterpage assignment?

can i take two content place holder in one master page.

custom sitemapprovider problem

sitemapnodes visible by roles

what is causing the extra padding underneath my menu?

is it possible to retrieve the xmlnode attributes from a treenode?

reference asp.net page from a master page

  Privacy | Contact Us
All Times Are GMT