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: 2/5/2008 7:49:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
bluefire_xl
Asp.Net User
Help with master pages2/5/2008 7:49:05 AM

0/0

 When i had done programming with my pages i decided to organize them by grouping similar pages into folders. The problem is when i transfered the pages the heading image of my master page on every page disappears. How do you fix this kind of problem?

raheel.hussain
Asp.Net User
Re: Help with master pages2/5/2008 8:23:07 AM

0/0

Hi,

If you have placed all of your pages inside a folder then you must use the " ../ " with the  image paths.

Supose that you have the header image as

<img src="images/head_image.gif"> then after putting all the pages inside any specified grouping folder, you may change the image path to

<img src="../images/head_image.gif">

This would do the trick.

regards


Raheel Hussain
--------------------------------
Blog:
http://www.dnfug.com/web/blogs/raheel/

URL: http://www.raheelhussain.com/
--------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
vik20000in
Asp.Net User
Re: Help with master pages2/5/2008 9:07:17 AM

0/0

Try using the (~) path to give image path and all these problem will be solved


vikram
www.vikramlakhotia.com
justlikethat.vikramlakhotia

Please mark the answer if it helped you
bluefire_xl
Asp.Net User
Re: Help with master pages2/6/2008 5:42:48 AM

0/0

but the images are path inside my master page? which is located outside the folders of the pages.

flohaas
Asp.Net User
Re: Help with master pages2/6/2008 7:45:32 AM

0/0

i think it will be useful for u

http://dflorence25.blogspot.com/2008/02/master-pages-in-aspnet-20.html

Confused


Cheers
Florence
vik20000in
Asp.Net User
Re: Help with master pages2/6/2008 8:22:49 AM

0/0

Yes when you set the url in the master page use "~" path. Using "~" will update the path to corretc path at run time


vikram
www.vikramlakhotia.com
justlikethat.vikramlakhotia

Please mark the answer if it helped you
bluefire_xl
Asp.Net User
Re: Help with master pages2/7/2008 2:05:24 AM

0/0

would you mean like this sir? 

img src="~/images/head_image.gif"

shayas
Asp.Net User
Re: Help with master pages2/7/2008 6:23:56 AM

0/0

hi

 Place the master page in the same directory or the different directory in the same level so that you can view everyhting proper(image css and accessing javascript)

for example

if u place contentpages in folder [root]/content

place the master page in folder [root]/master but don't make it on [root] or someother levels


Please remember to mark as answers if this help
Amanda Wang - M
Asp.Net User
Re: Help with master pages2/7/2008 8:04:39 AM

0/0

Hi,

bluefire_xl:

would you mean like this sir? 

img src="~/images/head_image.gif"

The img is a html control, it works at the client side, "~" is used for the server side control, it reprensents the root directory.

If you want to use  img src="~/images/head_image.gif" , you should add runat=server for the img control.

 

Hope it helps.


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
Hema@sanofi
Asp.Net User
Re: Help with master pages2/7/2008 7:39:05 PM

0/0

Try this.

Place all the images in one folder and copy that folder in each every folder of the application.

give the path of the image while accessing them in Master Page

images/background.gif (where images is the folder name)

MasterPageFile="~/MasterPageName.master"

ovaisgeo
Asp.Net User
Re: Help with master pages2/7/2008 8:06:02 PM

0/0

Try

~/images/imagename.jpg

Strupi
Asp.Net User
Re: Help with master pages2/10/2008 4:00:33 AM

0/0

 Hi,

I share your pain. It is odd that the experts who write the books do not put this stuff in the MasterPages section since it is so obvious that without it, there would be no sense in even having a MasterPage.

This is what I found after a week of looking. And I have actually tested it. (God forbid!) LOL


TO FIX IMAGES:
Use the <asp:Image tag.

<asp:image ID="Image13"  runat="server" ImageUrl="~/images/walkingholidays.jpg" alternateText="Walking Holidays" width="192" height="77" borderwidth="0" />

NOTE: Look very closely at ALL the wording.  You need the ID=, runat="server", ImageUrl =, the tilde (~) before the path and the alt property must be spelled out (AlternateText=) and border is now "borderwidth."  Any departure from this wording will screw you up. To find out more about this tag, go to the help menu in VWD and search for <asp:image in the index.

TO FIX ANCHOR TAGS:
Add an Id= property and the runat="server" property. If you apply a style sheet to the anchor (as in a menu) just add in the class= property: Note that there is no tilde (~) before the path.


<a Id="Anchor1" class = "menulinks" href = "Pages/Calendar.aspx" runat="server">CALENDAR</a>

 

TO FIX THE LINK TO STYLES
Simply add the runat="server" property to the <head> tag

<head runat="server">

<link href="styles/MyStyleSheet.css" rel="stylesheet" type="text/css" />

</head>


All of these examples assume that the MasterPage is in the root directory.
If you want to find out more about things like this, the head and anchor tags are called "HTML server controls" and the <asp: tag is called a "Web server control."


Hope you are now able to get some sleep.  The nightmares will probably go away in a week or two. Smile


Yes


Jim Webber, Sacramento, California
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Publisher 2007 for Dummies Authors: Jim McCarter, Jacqui Salerno Mabin, Pages: 366, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Mastering InDesign CS3 for Print Design and Production: for print design and production Authors: Pariah S. Burke, Pages: 492, Published: 2007
Indesign Type: Professional Typography with Adobe InDesign CS2 Authors: Nigel French, Pages: 270, Published: 2006
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Designing for Print: An In-depth Guide to Planning, Creating, and Producing Successful Design Projects Authors: Charles Conover, Pages: 240, Published: 2003

Web:
CodeProject: ASP.NET 2.0 Master Pages. Free source code and ... Master Pages is a great addition to ASP.NET 2.0. It's so important for templatizing your website ... I am like others new to asp.net and need a lot of help. ...
Sample master pages overview - Help and How-to - Microsoft Office ... More information about using master pages:. Master pages in SharePoint Designer 2007 Help and How-to · Master pages in the MSDN library. Top of Page ...
Master Pages in ASP.Net 2.0 - An Advanced Look In this article, I'll spin through a small sample application to help you in understanding the advantages of master pages and how can work with them. ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... Master pages are a great addition to the ASP.NET 2.0 feature set. Master pages help us build consistent and maintainable user interfaces. ...
ASP.NET Master Pages Overview ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard ...
Need help on Master Pages. - .NET ASP Need help on Master Pages.. Get answers to your questions in our .NET ASP forum.
Need help on Master Pages. Talk about Need help on Master Pages. ... Need help on Master Pages. Hello , I have a Master page defined with three content place holders. ...
CodeProject: MasterPages for .NET 1.1 (again). Free source code ... NET 1.x site for the use of MasterPages in .NET 2.0; Author: W vanEck; ... Thanks to Wouter for his help, I have converted the masterpage class from C# to ...
HELP - Deleting Multiple Master Pages in FrameMaker HELP - Deleting Multiple Master Pages in FrameMaker. rebecca officer rebecca. officer at alliedtelesis.co.nz Sun Feb 3 15:00:58 MST 2008 ...
Flare Tip: Using Multiple Master Pages in a Help Target Users can select one master page per target; however, more than one master pages can be applied to the help topics in a single target using stylesheets. ...

Videos:
Home Business Ideas From A Master Coach Watch This Video To Get My Years of Knowledge, Experience, and Training On How To Get The Best Results For Home Business Ideas. With This Knowledge ...
Did Gino Niccoli from the Dream Team really help my business? Gino Niccoli - A Leading Marketer Gino Niccoli Is A Leading Marketer. ... I’m Gino Niccoli. You’ve probably stumbled onto this site looking for more ...
'become a affiliate marketing master' (UK) 07527191665 http://www.myspace.com/nathan_salmon "Become an (Affilate Marketing) Master" Learn How to Drive Traffic!!!! affiliate marketing Make...
Home Based Business Leads From A Master Coach Through My Years of Knowledge, Experience, and Training This Video Shows Everyone On How To Get The Best home based business leads. With This Knowle...
(Million Mind March) Marketing Help! Generate Free MLM Leads http://www.GavinStephenson.com Reprogram Your Subconscious Mind · Business The Temple of Super-Mind--How to reprogram your subconscious mind....
Infancy-Matthew-22:He made an old Levi Schoolmaster to admit he has got a master than a scholar. Infancy Gospel of St.Matthew. Part-22:- Then he began in the heating of all to cry out, and say: Ought such a one to live on the earth? Yea, he ought...
(Million Mind March) Marketing Help! Generate Free MLM Leads http://www.GavinStephenson.com Reprogram Your Subconscious Mind · Business The Temple of Super-Mind--How to reprogram your subconscious mind....
Roland VM-7000 series DVD Video Tutorial Demonstration Help This is an excerpt from a full length DVD available at www.ProAudioDVDs.com. Host David Wills has toured with major artists such as Michael Jackson,...
Pricenet Leads-Generate Free Pricenet Leads Calling You http://www.showmefreedom.info/training pricenet leads- do you need pricenet leads so you can bring more people into your pricenet business? let us sh...
Napoleon Hill - A Year of Growing Rich - Ch 09 http://www.97dollarmillionaire.com/missingpages.pdf Join my Napoleon Hill Focus Group. Click the Link Above and Claim Your FREE Copy of the Missing P...




Search This Site:










treeview selection without postback solved....

moving straight html to masterpage

how to retrieve selecteditem.value from a dropdownlist in a usercontrol.

exception in staticsitemapprovider

menu control - static menu item has wierd background...

image on master page not visible

changing the css class of a control on a page

design templates

sitemap question.

dynamically populating menus from sql

how to create a master page in asp.net?

problem of tree control when used with model dialog window

dinamic themes question

page last updated date

a wizard control question

master page with absoulte postioning ???

i'm having a helluva time registering a custom sitemap provider.

using google maps api with master pages

dropdown retain selection across menu selection

custom sitemap

navigation control to display directories and files from windows.

page dependency matrix + objects

session variable

content area problem

vs.net 2005 dynamic menus does not work in ie 6

using urlreferrer to dynamically load a masterpage?

asp:menu remove "skip navigation link"

[how to] skin a validatorcalloutextender

how to handle multiple sitemaps for different treeviews

problem in master page

  Privacy | Contact Us
All Times Are GMT