CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/22/2007 6:32:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 47 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
dotnetnoob
Asp.Net User
Caching masterpages and use of ~/ in reference to MasterPageFile?8/22/2007 6:32:55 PM

0/0

Hi All: I have some shared hosting space on NetSol. I've been told that if I want multiple websites, I have to create a subfolder for each website in the top-level directory, and place a single web.config file in the main directory, and then point the URLs to the individual subfolders.

 I've done all that and it worked...somewhat. What I found was that I started to make changes to a master page in one directory using NetSol's filemanager utility (like a web-based text editor), but when I saved the master page the changes were not reflected.

I finally changed the reference to the master page in each child page from MasterPageFile="~/mymasterpage.master" to MasterPageFile="mymasterpage.master", and my changes started to appear.

My guess is that the master page was being cached at the server, and when I manually edited it with the text editor, the page was not being reloaded. But when I changed the path to the file in the child pages, it was reloaded into cache...does that make sense, or is something else going on?

Is the ~/ in the path to the masterpage have anything to do with caching behavior? or was it just forcing a reload by changing it? And is ~/ in the path necessary at all?

Biser
Asp.Net User
Re: Caching masterpages and use of ~/ in reference to MasterPageFile?8/22/2007 7:16:22 PM

0/0

 HI dotnetnoob

 " ~/" point to look for your mymasterpage.master into your Site Root Folder. It doesn't anything to do with caching behavior. Yes may be your SP cache sites to optimize server performance. When you make some changes to your site wait few minutes before access it.

 


Please remember to click "Mark as Answer" on this post if it helped you.
dotnetnoob
Asp.Net User
Re: Caching masterpages and use of ~/ in reference to MasterPageFile?8/22/2007 8:17:47 PM

0/0

 So, that would allow you to reference a master page even if your child page was nested several folders deep, yes? "~/" means "relative to root"? That's fine.

 

The caching issue, however, is maddening, because I'm trying to fix a problem, make changes in the masterpage code, and nothing happens...then I go back later on and "poof" it's suddenly working...I guess there's no way to control that without being able to start/stop the web process? Or would making a change to the web.config force a refresh? Just curious if there's any way to force an immediate reload if I'm not the server admin? 

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


Free Download:

Books:
Practical .NET2 and C#2: Harness the Platform, the Language, the Framework Authors: Patrick Smacchia, Pages: 896, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Pratique de .NET 2.0 et de C# 2.0: [comprendre et exploiter les atouts de la plate-forme .NET 2] Authors: Patrick Smacchia, Pages: 0, Published: 2006
Aprenda practicando Visual Basic 2005: Usando Visual Studio 2005 Authors: José Felipe Ramírez Ramírez, José Felipe Ramírez Ramírez Francisco Salazar, Francisco Salazar, Pages: 0, Published: 2007

Web:
ASP.NET Master Pages Overview However, you can reference public master-page members from code in the content page ... As long as the MasterPageFile attribute in the content page's @ Page ...
Use ZedGraph with a MasterPage - ZedGraphWiki The img 'src' reference includes a time property to fool the browser into reloading the ... <%@ Page MasterPageFile="~/MasterPage.master" Language="c#" ...
Steven Smith : Adding Master Page Support to Dynamically Created Pages NET · Use Write Caching to Optimize High Volume Data Driven Applications ... First, you would think you could just set the Page’s MasterPageFile property in ...
Errors after including Master Pages - ASP.NET Forums <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" %> ... WindowsClient : Caching and SRP pt2. Channel 8. Channel 8: Zune, Zune and Zune Software on ...
MikaEG: Microsoft Addict netscape6to9:masterpagefile="nsBase.master"%>. You cannot cache a Master Page with the OutputCache directive. You also cannot apply a theme to a Master Page ...
CodeProject: ASP.NET 2.0 Master Pages. Free source code and ... Label1.Text = this.MasterPageFile;. This will show the path of the Master Page file into the label. Actually you can get a reference to the Master Page from ...
aolserver.am.net | AOLserver Modules | ADP Master Pages Tcl Module ... Sep 13, 2007 ... Note how you can use a tcl variable for the masterpage to include into: --> <%@ IncludeInto MasterPageFile="$masterpage"%>




Search This Site:










downloading dotnetnuke

which portal?

httprequest

how to cretate a virtual directory configured as an application in iis?

asppage

authentication in asp.net 2.0. please, i need help. thank you.

auto page update via loop... ??

3.0.10 issue: create portal allows invalid email.

converting to c#

withevents variable : how do i add a withevents argument to a web form?

question about project organization - using class libraries

moving from access to sqlserver

vs2k5 licencing question

dnn4 forums module

module development documentation...

non-zero module cache prevents editing

dnn 3.0.10 - upgrade module

why wont this simple for each loop work

multiview, multiple detailsview and error "failed to load viewstate. the control tree into which viewstate is being loaded must match the control tree"

web setup project & iis new website

'system.windows.forms.datagridview' does not contain a definition for 'item'

createuserwizard - change validation error mesage text to remove the "..non-alphanumeric characters required: 0"

can someone help me with views

create a dynamic hyperlink

ram

problem in personal starter kit aspnetdb database hosting

automatic updates of sql database

collapse/expand certain nodes with javascript?

wss + webpart + iframe + wpf = headache

exception of type system.outofmemoryexception was thrown

 
All Times Are GMT