Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2006, 10:09 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default masterpage issue

Is there anything I am missing? I have a masterpage.master in my main website folder. I create a folder and when I create a new webform in it and point it to the masterpage outside the folder, it doesn't find any of the html--it does find a sitemap I created .. but nothing else. The top of the file is defined exactly like the other content pages I have in the main folder.

It's driving me crazy.

Regards,
Rob

 
Old November 15th, 2006, 10:11 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default

Ok--I fixed it .. but not sure why this works. Basically, I had created the masterpage in Dreamweaver and then manually converted to aspx file by adding form runatserver tag....

I didn't have my html tag as runat server...once I created an ID for my masterpage HTML tag and put the runat="server" property..it worked.

Also--when I did that, I couldn't get my pictures from my masterpage--but they were created as <TD> tags with img src="/siteimages/pic.jpg" I couldn't see the pictures--but when I added a "runat=server" to the TD tag--I could see them.

Why do I have to create these runat server properties for it to work in a subfolder of my site--but works just find in the main site directory??


***** ADDED *****

I am also running into a problem when I add a login control..(This might be more HTML--or related to the runat="server" issue)..I create an id for a DIV tag and define a CSS rule. I see the effects in the "Design" tab of Visual Studio--but when I run the page, none of them take affect???

*****ADDED*******

Ok--have no idea--when I run this on IIS through my domain (robertsearing.com) the login control has the changes..when I test it through Visual Studio--it doesn't have the changes.

Rob





Similar Threads
Thread Thread Starter Forum Replies Last Post
MasterPage grstad ASP.NET 2.0 Basics 0 June 7th, 2008 04:30 AM
MasterPage and Firefox issue! bignermo BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 May 22nd, 2007 09:20 AM
My first MasterPage grstad ASP.NET 2.0 Basics 4 June 7th, 2006 11:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.