CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/1/2008 4:01:43 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 102 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
mayankagarwal
Asp.Net User
MAster page menu doesnt not refresh2/1/2008 4:01:43 AM

0/0

Hi guys

 I have weird situation that i have a home page with two hyperlinks that pass querystring to call a masterpage/contentpage site.

the masterpage has a menu and contentplaceholder. the content site fills the contents using the database. The querystring from the homepage is uses to determine which menu to display (dynamically generated)

the problem i having that when i enter the first site (siteID = 1) the corrent menu is displayed, but then go back on the browser to even manually update the url to siteID = 2, the old menu remains persistant, its doesnt refresh to the new site ID. on masterpage load event i have session(siteID) = request.querystring(siteID). using debug i have made sute teh session site is is the correct one.

can you please tell what must be happening to not make the menu refresh looking at the new site ID. the query out put is correct as well.

carterwjeff
Asp.Net User
Re: MAster page menu doesnt not refresh2/1/2008 7:39:49 AM

0/0

I believe that if a webpage has QueryString it does not store that page in history without it. So history shouldn't load the same page as cached unless it has the same querystrings... but here is how cache for the page can cleared right away:

Response.ExpiresAbsolute = DateTime.Now;

Response.Cache.SetAllowResponseInBrowserHistory(false);

Amanda Wang - M
Asp.Net User
Re: MAster page menu doesnt not refresh2/4/2008 7:26:16 AM

0/0

Hi,

Base on your description, you generate the menu from database, and you want to re-generate the menu according to the url param, right?

mayankagarwal:

the problem i having that when i enter the first site (siteID = 1) the corrent menu is displayed, but then go back on the browser to even manually update the url to siteID = 2, the old menu remains persistant, its doesnt refresh to the new site ID. on masterpage load event i have session(siteID) = request.querystring(siteID). using debug i have made sute teh session site is is the correct one.

Do you add this code?  this.menu.DataBind()

You need to rebind the menu control when you change its datasource.

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
mayankagarwal
Asp.Net User
Re: MAster page menu doesnt not refresh2/4/2008 11:04:06 PM

0/0

yes i have got the databind once i attach the datasource, but still no result. bit more details on my situation

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23128677.html

thanks for your help

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
Web Search Savvy: Strategies and Shortcuts for Online Research Authors: Barbara G. Friedman, Pages: 223, Published: 2004
Master Visually Creating Web Pages: Creating Web Pages Authors: Joe Kraynak, Pages: 421, Published: 2004

Web:
MAster page menu doesnt not refresh - ASP.NET Forums the masterpage has a menu and contentplaceholder. the content site fills the contents using the database. The querystring from the homepage ...
Master Pages - User Control - Refresh - ng.asp-net-forum ... 6 Items, 1 Pages 1 | Go >> >| eappell. Asp.Net User. Using sitemap, menu control in master page... MAster page menu doesnt not refresh - newsgroup.asp-net . ...
menu control refresh page : refresh, page Rank: Master. Darth_helge:. maybe i dont understand but my menu control does not refresh the page <%@ Page Language="VB" AutoEventWireup="false" ...
Master Pages - Updating content without full page refresh? - .NET ASP Master Pages - Updating content without full page refresh? ... mastersheet, with menu items set as triggers. This doesn't seem to have the ...
Masterpages and MS Ajax « Dennis van de Laar Do you have any suggestions therefore for how I could ensure the content I have in the master page (the menu, company logo) doesn’t refresh, ...
Menu not refreshing changing the datasource - ASP.NET Forums but the menu is not changing...do you know what's wrong? ... Yes, and I need to refresh both the masterpage (where there is the menu) and ...
CodeProject: Using Menu and Sitemap with Master page. Free source ... Then add a menu control in the top section of the master page, .... Sorry, I know this does not help you much, but maybe someone else has used this control ...
.NET ASP.NET Re: How to switch content page? In fact, a MasterPage isn't a page at all - it's little more than a .... form for each page, and the side bar on the left does not refresh. ...
Qiestion: RadAjaxManager refresh at MasterPage - telerik Forum In masterpage I have on the left one RadTreeView, ... the portion of the page to update, however a content place holder does not render any ...
How to switch content page? implemented a master page that shows a sidebar user control on the ... each page , and the side bar on the left does not refresh. ...




Search This Site:










learning css...help!!!!

use method from masterpage in content page

how to fill the whole screen

is it possible to use multiple styles in a menu?

user control in master pages

override masterpage

how to load files from file server in treeview?

using css in master pages

two-level tabbed menu navigation?

images on master disappear on pages in another directory

asp.net 2.0 menu interferes with scrolling div

target property of menu control

master pages and viewstate

master pages / content pages. how to set the form id ??????????

sitemapdatasource dynamic menu???

how to display menu......

how to expand a custom contentplaceholder???

treeview control in asp.net

master pages, themes, and urlmappings

masterpages & subdirectories

content page catching masterpage event!

sqlsitemapprovider and onsitemapchanged

themes not working in design-time

master sheets with stylesheets question?

selectable gridview within content page not working

css in masterpage

backcolor on masterpage dont fill the hole page

master pages: i need to make a footer

customize second node of sitemappath?

moving the wizard step links from left side

  Privacy | Contact Us
All Times Are GMT