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: 11/21/2007 8:34:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
diadem_2k
Asp.Net User
How to write the correct image Name in MasterPage???11/21/2007 8:34:26 PM

0/0

I have following web project structure:

Root Folder:

1. Default.aspx page

2. MasterPage 

2. Folder Named: Secure ---> Results.aspx

3.  Web.config, other we can discard...

now all the aspx file, i mean "default.aspx", "Results.aspx" pages inherit master page.

IN MASTERPAGE, I have place a image above the  contentplaceholder like this (see below the HTML code---see the img marked in BOLD):

Now, this image is shown correctly on Default.aspx page BUT NOT ON RESULTS.aspx page coz results.aspx page is under a sub-folder.....

when i do ../images/v_logo.gif, then it shows in sub-folder aspx file but not on  "default.aspx" file????????

how can i make this image has generic so that it shows on all the pages irrespective of whether it is under sub-folder or outside the sub-folder???

thanks a lot in advance... 

------------------------------------------------------------------------------------------------------------------------------ 

<body style="background-color:#ffffff; margin-top:0; margin-left:0">

   <table style="background-color:#ffffff" border="0" cellpadding="0" cellspacing="0" width="900px">
  
        <!-- Here comes common Company template START-->
    <tr>
       <td colspan="2"><img id="v_logo" src="images/v_logo.gif" width="150px" height="73" alt=""/></td>
    
    </tr>
   
    <tr>
       <td rowspan="5" colspan="2" style="background-color:#ffffff" valign="top">

            <form id="form1" runat="server">
                <div>
                                <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
                      
                </div>
            </form>
        </td>
    </tr>
  
   </table>
</body>

mcmcomasp
Asp.Net User
Re: How to write the correct image Name in MasterPage???11/21/2007 8:40:30 PM

0/0

try

<img src="~/images/blah.jpg"/>

 


techincal blog
corporate
diadem_2k
Asp.Net User
Re: How to write the correct image Name in MasterPage???11/21/2007 8:49:34 PM

0/0

 I tried but i cannot see see image both on default and results.aspx pages??

 any light on this...i don't want to write logic around on this for each and everypage???


 

diadem_2k
Asp.Net User
Re: How to write the correct image Name in MasterPage???11/21/2007 8:51:52 PM

0/0

if i use asp image , then it shows with ~/

thanks i will then use asp image  only instead of html image

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


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Mastering InDesign CS3 for Print Design and Production: for print design and production Authors: Pariah S. Burke, Pages: 492, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
How to Do Everything with Adobe InDesign CS Authors: David Bergsland, Pages: 456, Published: 2004
Maybe You Should Write (and Publish) a Magazine: How to Write, Publish and Profit from Regional Special-Interest Magazines Authors: William Cory, Pages: 0, Published: 2003

Web:
Simple Masterpage Background Image Question - ASP.NET Forums Don't forget to mark the correct answer for your ... 1)just write the image name in the background-image property...not the path........ ex: ...
.NET ASP.NET trouble with rollover buttons on master page They show up with the "out" image which is of course correct. ... I think I know why but I have no idea how to write the above so that it ...
ASP.NET Master Page Tutorial Part -5 (Adding Header Image ... May 1, 2008 ... Expression web Master Page tutorials in ASP.NET (Adding Header Image,Sidebar tutorial Now in address bar write "Home.aspx" (we will make the ...
MasterPage Subdirectory Image Bust - SitePoint Forums Reload this Page MasterPage Subdirectory Image Bust .... anis/indexHdr.swf" /> < param name="quality" value="high" /> Microsoft Expression Expression Web Master page question for Jim ... Because the masterpage will generate an aspx page with self-posting form, ... < input type="hidden" name="cmd" value="<%Response.Write (strCmd)%>"/> ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... Here is a case where the master part of the master page name can be ..... FindControl is to invoke the method on the correct container, ...
Rob Nowiks SharePoint and Web Blog Sep 21, 2006 ... Your Name:. * Please enter the code: Captcha Image ... You could write an aspx control, to embed in your masterpage, that outputs a html ...
Access a Method in a Master Page with Code-Behind (Braintrove Article) Write code to access a method in an immediate or parent master page from a ... and MasterMethod() with the name of the master page method you will be ...
Alessio Marziali » ASP.NET MasterPage object tricks May 5, 2008 ... In order to do this you can create a controll on the MasterPage and write down some code as a MasterPage property. For example it's possible ...
Meet SharePoint's Front-end! with Diantha van Marion - How you ... Feb 26, 2008 ... Masterpages cannot contain a webpartzone. But how to go if you want your client to be able to add a header image? In the masterpage, you can ...




Search This Site:










nikhil's updatehistory and masterpages

skin choose in asp.net

menurootcategory.statichoverstyle.backcolor

design view when using master pages

where to start

control not display properly after include master pages

can i solve my problem with master pages?

how to handle events between master page and child .aspx pages

how to use css properties by programatically in c#

menu control, how do you get a selected color to show on root item?

designating media type in css with themes

making menuitems invisible in code

menu staticbottomseperatorimage - don't want on last menuitem

menu control not displaying properly

menu control help needed

treeview rootnode text

content placeholder rendering wrong at end of form

menu size

how to update or change the master page variables

clear text boxes on content page when menu item clicked on masterpage

any idea why skin doesn't apply on my gridview with adapter?

building sitemap from database null value error using iif

skin ajax extender

masterpage

menu control alignment is 1 pixel off

how is this possible?

changing url with query strings to be view as a fixed path url

accessing child master like (childmaster)this.page.master.child

on mouse roll over..

add a node to the sitemap dynamically

  Privacy | Contact Us
All Times Are GMT