Working with ASP.NET 2.0
-
Hi all: I recently graduated from SetFocus' .NET Masters program, and I'm working on my firts website. It's going to be a community website, for me and my friends, and I'm having fun applying everything I learned, but there are some things that have me confounded. For one thing I've added a background image to my Master page, but when I view any of the pages of my site in my browser (Firefox), the image does not appear (note, I've also tried it with IE6, but no luck). I've tried using Style to configure the background, and I've also tried it using the properties of the master page. I've checked a number of websites including Google, and even this site, for anything that might explain why this is happening, but haven't found anything useful. Does anyone know of any additional configuration that needs to be done to view a background image? Other questions that have come up are: 1. whether we can name the web.sitemap file anything we choose (and if so, how do I point components like sitemap path and menu to a sitemap with a different name)? 2. how do I get changes to the content on the master page to show up on the other pages on my site (it doesn't automatically update, and I have to use the smart tag to "default to master content", which "loses" other content that I might have on the individual page). Any help that you can offer would be greatly appreciated.... Draykko
======================= Every experience in life is a lesson to be learned A. Stevens B.S., Computer Science
-
Hi all: I recently graduated from SetFocus' .NET Masters program, and I'm working on my firts website. It's going to be a community website, for me and my friends, and I'm having fun applying everything I learned, but there are some things that have me confounded. For one thing I've added a background image to my Master page, but when I view any of the pages of my site in my browser (Firefox), the image does not appear (note, I've also tried it with IE6, but no luck). I've tried using Style to configure the background, and I've also tried it using the properties of the master page. I've checked a number of websites including Google, and even this site, for anything that might explain why this is happening, but haven't found anything useful. Does anyone know of any additional configuration that needs to be done to view a background image? Other questions that have come up are: 1. whether we can name the web.sitemap file anything we choose (and if so, how do I point components like sitemap path and menu to a sitemap with a different name)? 2. how do I get changes to the content on the master page to show up on the other pages on my site (it doesn't automatically update, and I have to use the smart tag to "default to master content", which "loses" other content that I might have on the individual page). Any help that you can offer would be greatly appreciated.... Draykko
======================= Every experience in life is a lesson to be learned A. Stevens B.S., Computer Science
Are you sure that your content pages refer to that masterpage? You must either use the MasterPageFile attribute in the <%@ Page %> directive of every page to refer to your masterpage or you could use the masterPageFile attribute of the <pages> element in web.config (more recommended, your masterpage will be used for every .aspx file in your website as long as you don't define a different masterpage in your pages.)
Waleed Eissa .NET Software Developer in Sydney
-
Are you sure that your content pages refer to that masterpage? You must either use the MasterPageFile attribute in the <%@ Page %> directive of every page to refer to your masterpage or you could use the masterPageFile attribute of the <pages> element in web.config (more recommended, your masterpage will be used for every .aspx file in your website as long as you don't define a different masterpage in your pages.)
Waleed Eissa .NET Software Developer in Sydney
Just to confirm, if I make a change to the Masterpage it should show up in any pages that refer to that Masterpage, correct? If that's true, then something is not set correctly in my project; everytime I make a change on my Masterpage it doesn't show up in any of the pages that reference the Masterpage (unless I use the "default to Masterpage" under the smart tag). The only other way to get the changes to appear is to create a brand new page. :confused:
======================= Every experience in life is a lesson to be learned A. Stevens B.S., Computer Science