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: 6/6/2007 5:05:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
Phillip J
Asp.Net User
Mast Page Images missing6/6/2007 5:05:31 PM

0/0

Hi,

I have a couple of questions regarding MASTER PAGES...

1.  Images placed in the header or footer areas show in Design mode but NOT in Run mode?
( I only get the place holders)

2.  I have a set of menu buttons I have placed in a table and want to set it as Right Aligned on the Master Page so it will show up and take up the right hand side of any new page.  How do I do this?
(the button properties are not dynamic)

3.  Is there a good simple example of building a MASTER PAGE with header and footer and a menu bar which will explain my issues?
(I have tried all the MS ones and they have got me into trouble every time)

 Thanks

Phill


Thanks
Phillip J.
persa
Asp.Net User
Re: Mast Page Images missing6/7/2007 1:31:37 PM

0/0

Can you post a part of your master page code that shows how you link to the images? It would be easier to find the problem that way.

One general idea is to check that your images are referenced like ImageUrl="~/Images/MyImage.jpg" where the "~/" part is important to make the image url reference the image file relative to the ASP.NET web application root.

Best regards,
Per Salmi


Per Salmi, Software Developer .NET Technologies
PerSalmi.NET
Phillip J
Asp.Net User
Re: Master Page Images missing6/7/2007 4:41:49 PM

0/0

Sorry about that here is a bit of the code.... Header section....

<%@ Master Language="VB" CodeFile="Site.master.vb" Inherits="Site" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div id="header" style="background-color: black">

&nbsp;

<asp:Image ID="Image1" runat="server" Height="87px" ImageAlign="Right" ImageUrl="~/App_GlobalResources/Cclef.gif"

Style="z-index: 100; left: 871px; position: absolute; top: 27px" Width="79px" />

<asp:Image ID="imgHarp" runat="server" Height="92px" ImageAlign="Left" ImageUrl="~/App_GlobalResources/harp.gif"

Style="z-index: 101; left: 13px; position: absolute; top: 20px" Width="81px" />

<br />

<asp:Label ID="Label1" runat="server" BackColor="Black" BorderStyle="None" Font-Bold="True"

Font-Names="Times New Roman" Font-Overline="False" Font-Size="XX-Large" ForeColor="DodgerBlue"

Height="37px" Style="z-index: 102; left: 99px; vertical-align: middle; position: absolute;

top: 50px; text-align: center" Text="The Preachers Blues Band" Width="768px" BorderWidth="0px"></asp:Label>

<br />

<br />

<br />

<br />

</div>


Thanks
Phillip J.
Amanda Wang - M
Asp.Net User
Re: Mast Page Images missing6/8/2007 2:41:47 AM

0/0

Hi, 

Phillip J:

2.  I have a set of menu buttons I have placed in a table and want to set it as Right Aligned on the Master Page so it will show up and take up the right hand side of any new page.  How do I do this?
(the button properties are not dynamic)

You could use menu's DynamicItemTemplate and make the menu buttons surround by a table, you could use the td 's align set the menu button's align.

Below is sample, hope it helps.

<asp:Menu ID="Menu1" runat="server"  DataSourceID="SiteMapDataSource1" CssClass="menuitem" Orientation="horizontal"
                    DynamicHorizontalOffset="1" Font-Names="Verdana" Font-Size="Small"  StaticSubMenuIndent="" Font-Bold="True" athSeparator=" | "  Height="15px" OnMenuItemClick="Menu1_MenuItemClick" OnMenuItemDataBound="Menu1_MenuItemDataBound" Width="49px" Target="_ContentPlaceHolder1">
                        <DynamicItemTemplate>
                        <table >
                            <tr align="right">
                                <td align="right">
                                    <%# Eval("Text") %>
                                </td>
                            </tr>
                           </table> 
                           <asp:HyperLink ID="HyperLink2" runat="server" Text='

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
Jeevi
Asp.Net User
Re: Master Page Images missing6/8/2007 2:42:17 AM

0/0

hi,

  i suggest you to use the Div tags with CSS to align left and right panes which is very easy to maintain. ur css can be something like this,

1.
//ur CSS part 

#wrapper{
background-color: white;width: 800px;height: 100%;}

#header{
 float: top; background-color: black;width: 800px;height: 150px;} 

#rightpane{
 
float: rightwidth: 120px;height: 100%;}

#mainpane{
 
float:left; width:680px; height:100%; }

//ur HTML page

<div id="wrapper">
  <div id="header"> ur header elements goes here <div>
  <div id="mainpane"> Place ur Content Pane here <div>
  <div id="rightpane"> sidebar elements </div>
 </div>

  u can also playaround with different width and height properties in order to satisfy ur own need.

2. is that ur masterpage and child pages are under the same folder. bcz i also got the same pblm when i keep the childpage under one or more level to the masterpage. then i needed to duplicate my images with the same folder structure under child folder too. otherwise move all the pages to the same location. 
 i would appreciate if anyone come with different solution!

hope it helps.
   
  

persa
Asp.Net User
Re: Master Page Images missing6/8/2007 5:21:58 PM

0/0

About the first question, the reason for images being visible in design mode but not at run-time... 

Phillip J:

<asp:Image ID="Image1" runat="server" Height="87px" ImageAlign="Right" ImageUrl="~/App_GlobalResources/Cclef.gif"

 

Style="z-index: 100; left: 871px; position: absolute; top: 27px" Width="79px" />

<asp:Image ID="imgHarp" runat="server" Height="92px" ImageAlign="Left" ImageUrl="~/App_GlobalResources/harp.gif"

Style="z-index: 101; left: 13px; position: absolute; top: 20px" Width="81px" />

 

In your master page you refer to images placed in the App_GlobalRecources folder which is a folder used for resx files that will be compiled into assemblies, files placed in this folder are not available at run-time as you can see if you do a Publish web site from the Build menu in VS2005 to some empty folder. The App_GlobalRecources folder is not even created in the target directory when publishing. Please move the images to another folder inside your project, for example ~/Images/... and change the references accordingly to make it work.

/Per Salmi


Per Salmi, Software Developer .NET Technologies
PerSalmi.NET
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
A Flag at Half-Mast: A Personal Account of the Attack on America Authors: J. Patch Guglielmino, Pages: 168, Published: 2006
Transmitting Knowledge: Words, Images, and Instruments in Early Modern Europe Authors: Sachiko Kusukawa, Ian Maclean, Pages: 296, Published: 2006
The Mast Cell in Health and Disease Authors: Michael A. Kaliner, Dean D. Metcalfe, Pages: 880, Published: 1993
Affine Analysis of Image Sequences Authors: Larry S. Shapiro, Pages: 210, Published: 1995
Unspeakable Images: Ethnicity and the American Cinema Authors: Lester D. Friedman, Pages: 443, Published: 1991
Archaeological Oceanography Authors: Robert D. Ballard, Pages: 283, Published: 2008
Bringing Up Baby: Howard Hawks, Director Authors: Howard Hawks, Gerald Mast, Pages: 320, Published: 1989
Radio Antennas and Propagation: Radio Engineering Fundamentals Authors: William Gosling, Pages: 259, Published: 1998
At War Within: The Double-edged Sword of Immunity Authors: William R. Clark, Pages: 288, Published: 1995
Signal Processing for Multimedia: [proceedings of the NATO Advanced Study Institute on Signal Processing for Multimedia, Lucca, Italy, 5-18 July 1998] Authors: Jim Byrnes, Pages: 269, Published: 1999

Web:
MAST WUPPE 1 Down Field Information link to MAST page, WUPPE, star image .... cases (see above), there were corrupted or missing frames (out of a total of 16 frames for the Downfield Image ). ...
Reversible expansion of primate mast cell populations in vivo by ... Mast cell development in mice is critically regulated by stem cell factor (SCF), the term used ... or click on a page image below to browse page by page. ...
Mast Cells: The Missing Source of Cardiac Renin? -- Xiao and ... Author: Keyword(s):. Year: Vol: Page: ... Click on image to view larger version. Figure 1. The renin-angiotensin pathway (RAS). This figure emphasizes only ...
MAST.Galex.HomePageMain A high-level description of data retrieval modes is provided on the Getting Started page. Help in navigating the website is provided by the GALEX/MAST ...
Mast.com - Mast Website Title: Mast Industries, Inc. Home Page. Title Relevancy, 0% ... Images: 9 (Alt tags missing: 1). Links: 6 (Internal: 6, Outbound: 0) ...
Effect of lipopolysaccharide on mouse mast cell induction by a ... We have previously reported a method of mast cell induction by long-term culture of mouse spleen ... or click on a page image below to browse page by page. ...
Mizzen Mast?... Bring on the riggers - Cruisers & Sailing Forums But it is missing the mizzen mast. mizzen boom, sail and all associated hardwear , cables, ect. ... Specifically: Rig-Rite Masts Page Selden Mast Inc. ...
Mast cell tumor of the toe (image) | Largest Pet Health and ... Nov 6, 2006 ... Also You can check our other articles : Mast cell tumor on lip Image Top 5 Dog Health Problems Red skin lump Problem Pet Radiation Therapy ...
Blackwell Synergy - Immunol Rev, Volume 217 Issue 1, Mast Cells ... Volume 217 Issue 1, Mast Cells, Page 222-230, June 2007 ...... ligand growth factor is determined by alternative splicing and is missing in the Sld mutant. ...
Rudder & Mast If this enlarged picture won't print on a single page, search your software ... If the pictures are missing, send me the URL, and I'll scan them for you. ...

Videos:
U.N. Officials Get Access to Parts of Myanmar SelectPlusU.N. Officials Get Access to Parts of MyanmarU.N. Officials Get Access to Parts of MyanmarThe Associated PressMyanmar's government is final...
Pizza Delivery Jedi A very long time ago the Jedi order, led by a young Yoda, was little more than a powerful pizza delivery chain on a backwater planet. During these ea...




Search This Site:










passing values from page to masterpage

how to cache server control on master page

max nodes in a treeview.

nikhil's updatehistory and masterpages

whidbey sample themes

link in a menu

how to set <title>'s skinid

tree view in master page

show/hide

cycling throguh root nodes.

custom menu

dynamic height while using a masterpage

treeview in masterpage

create master page event and subscribe from content

masterpage not exposing properties?!

navigation and sitemaps in asp.net 2.0

label in contentplaceholder

inconsistent css output with themes

target in masterpage

document title

menu

stylesheet file doesnt get picked up

treeview server control

storing data to the database using multiview controls

can't access internet site from menu control

about master page content hold

skin file for gridview

how to work with master page content from content page

menu creation in asp.net2.0

configuration question

  Privacy | Contact Us
All Times Are GMT