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: 12/8/2006 4:31:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ssimon
Asp.Net User
Loosing Pic on MasterPage when creating a file in sub folder12/8/2006 4:31:28 PM

0/0

Test:

New Site

Two Folders: Images and Sub

Image Folder : One Pic

Root Directory: MasterPage with Image src pointing to Pic in Image folder (src="Images/pic.jpg")

 

Root Directory: test.aspx using MasterPage

Sub Directory: test2.aspx using MasterPage

 

Test will show the pic but test2 will not.

 

How do I get around this? This makes no since to me since the test2 inherits the information from the master page, where it is pointing to the correct file. For an intranet site I would not mind putting in the full path to the image, however I do not want to do this on a site that would be on the internet.

[email protected]
Asp.Net User
Re: Loosing Pic on MasterPage when creating a file in sub folder12/8/2006 7:33:26 PM

0/0

Try:

/Images/pic.jpg

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
ssimon
Asp.Net User
Re: Loosing Pic on MasterPage when creating a file in sub folder12/8/2006 7:50:58 PM

0/0

/Images/pic.jpg and ~/Images/pic.jpg does not work
ssimon
Asp.Net User
Re: Loosing Pic on MasterPage when creating a file in sub folder12/8/2006 8:34:25 PM

0/0

Just fixed my problem.

Instead of using Image src I changed it to

<

asp:Image ID="Image1" runat=server ImageUrl="~/Images/3.jpg" /> and now it is running smoothly on all pages.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Loosing Pic on MasterPage when creating a file in sub folder - ASP ... Loosing Pic on MasterPage when creating a file in sub folder. Last post 12-08- 2006 3:34 PM by ssimon. 3 replies. Sort Posts: ...
Loosing Pic on MasterPage when creating a file in sub folder - ASP ... Loosing Pic on MasterPage when creating a file in sub folder. Last post 10-07- 2008 9:47 AM by software34. 4 replies. Sort Posts: ...
Mart Muller's Sharepoint Weblog - October, 2006 So, what do you think of using the file format? Are you happy loosing Adobe ..... Beware that when you create a masterpage with SharePoint designer you ...
.NET ASP Page 34 - Bytes Site Map Cannot encrypt a custom section in the configuration file · Button · gridview help .... Use Java Script File with Asp.Net page that uses a Master page. ...
TheMSsForum.com >> Asp >> Invalid cast of master page class - The ... I'm consistently losing web control declarations when converting aspx pages. ... Cache dependency based on file folder? Is there any way to create a cache ...
Basics of Adobe InDesign To create a Master page. You can either model a Master page on an ..... putting a copy of every image file in the same folder as the INDD document before ...
2008 20080927 15:12:44 2.3 HOW2INDen_InDesignExports.xml /Users ... The previously installed folder „BatchXSLT“ contains the sub-folder „_TestData“. ..... by creating a special master page with a placed image. ...
05_111932 ch01.qxp the main Applications folder. (Chapter 3 shows you the Photoshop interface ... avoid the risk of losing your work (or the entire image file) because of a ...
Building ASP.NET 2.0 Web Sites Using Web Standards If you add this file to your Web project, then the MIME type of every ASP. ...... For example, the Web site uses a Master Page to create a common page ...
WALDOLand Blog: 07/01/2007 - 08/01/2007 It also corresponds to the appropriate subfolder beneath the Album Artwork folder. .... End Sub End Class. Then create a Master page for your blog content. ...




Search This Site:










best way to completely change a whole site....

treeview and javascript

context menu in treeview

how to know which contentpage is presently active

target property of menu control

help to modify sqlsitemapprovider for my requirement

menu trimming problem while using web.sitemap.

do not cache login-details in masterpage

how to display different title in one master page

multiple themes

web.sitemap url problem

set sitemapprovider property of sitemapdatasource dynamically

help on order of execution.....

need to access a label control on the master page from a user control attached to a content page

staticselectedstyle and masterpage

c# linkbutton with masterpage

titles on masterpages vs. content pages?

skin isn't being applied to label

auto-loading multiple content areas in 1 master page

menu control keep menu item selected

gridview control going out of contentplaceholder.

how do i access functions on a basepage from a masterpage?

child page file name

placing second stylesheet inside sub master page

howto: inherit from a common page class?

trying to get the user.identity.name in the master page code

request.form["key"] in contentplaceholder problem

the asp menu control does not navigate to the navigateurl property set in the menu item

question:master page + sitemap

javascript error

  Privacy | Contact Us
All Times Are GMT