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: 6/25/2007 4:33:35 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
sebastiencoutur
Asp.Net User
Master page issues with sub folders6/25/2007 4:33:35 PM

0/0

My master page gets images from a folder named img in the root. The problem I'm having is that as soon as I step out of that folder, the page doesn't find the images anymore. What I find strage however is that it's smart enough to put ../ in front of the linked css files when i look at the source. Why won't it do this for images and how can I fix it.

 

Thanks

ysw
Asp.Net User
Re: Master page issues with sub folders6/25/2007 5:18:31 PM

0/0

Hi

try using the following form

<img runat=server src="~/img/img.gif">

important: it must be runat=server control.  ~ paths are paths starting from the root of your application.

See more details here:

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

-yuriy

sebastiencoutur
Asp.Net User
Re: Master page issues with sub folders6/25/2007 5:24:25 PM

0/0

thanks, I was going to use a <asp:Image> tag but this is much simpler.

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


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Pro Access 2007 Authors: Martin W. P. Reid, Pages: 395, Published: 2007

Web:
PROBLEM USING MASTER PAGE IN SUBFOLDERS - ASP.NET Forums i am having problems using masterpages in subfolders. anything in the general folder i easily link to the masterpage and it works, ...
Images from masterpage cant be seen on subfolders - ASP.NET Forums Images from masterpage cant be seen on subfolders. Rate It (1). Last post 01-17- 2006 2:01 PM by SimonCal. 6 replies. Sort Posts: ...
Javascript menu call with MasterPage subfolders : Javascript, IE 6 ... Here's the story.... I have an ASP.net MasterPage in my root directory. The MasterPage has a menu. The menu has references to .aspx files in subdirectories.
JavaScript problem used in Master Pages and Subfolders JavaScript problem used in Master Pages and Subfolders. Hello, I was wondering if anybody know how to fix the problem with JavaScript in ...
.NET ASP.NET path reference issue with a single masterpage and ... path reference issue with a single masterpage and subfolders on a - markm7. 06- May-08 12:52:05. There is probably some simple answer to my ...
Is it possible to have 1 masterpage and webpages in subfolders ... I want to have 1 universal masterpage that controls my navigation. At the same time, being that the website is so big, i have divided different areas into ...
ASP.NET 2.0 Master Page Problem Asp.net 2.0 Master Page Sub folder Relative URL error ... I was running to issues with the images on the page not working under sub folders. ...
Microsoft TechNet SharePoint - General Question and Answers and ... It looks like if you use the Default.master page, then SharePoint uses the ... that is what it is called) to display the folders and sub folders below it. ...
Absolute Image Locations and Master Pages | Tech Off | Channel 9 Nov 30, 2006 ... Problem is that Image location cannot be determined if in a page in a sub-folder from root and also in a page at root when using Master ...
KWizCom SharePoint CRM Blog: Working with sub folders in list For performence issues we wanted to create a sub folder for each list in the site and a second level .... Nested Master Pages in SharePoint - Troubleshoot ...




Search This Site:










url in e-mail

please help me! (asp.net with win mce)

page rendering crash

menu item formatting

customer error

unauthorized users

asp.net treeview xml datasource "subtree.all is null or not an object"

strange error

module defintion install for control panels

why wont this viewstate work?

creating help files through c#.net

root + multiple instances

tree view display problems

free domain and web spase

content placeholder and html

dotnetnuke performance

new site launch

multiple sitemaps - possible?

whats so good about .net?

html controls vs. web controls

protecting a folder

using ssl and https questions

setting up sharepoint services for web part development

placing a datagrid in a tabstrip control

can this be done in asp.net?

page_load event in user control does not fire when loaded

problems acessing masterpage from a dll created in another website

super productcatalog 3.1 released!

subcategories

can't dowload the gcn from www.gotdotnet.com

 
All Times Are GMT