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: 8/16/2007 5:19:58 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 42 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
ryeisdead
Asp.Net User
CSS not working upon debug8/16/2007 5:19:58 AM

0/0

Hi, I currently have two pages (login and default) using the same theme (default). the default theme has a skin and a css file. the default page loads both skin and css fine, but the login page does not seem to be reading the css file on debug. in designer view it displays the background color properly and the margins, but when i try to debug, only the skin is implemented.

Any ideas?

Jean-Paul
Asp.Net User
Re: CSS not working upon debug8/16/2007 8:27:57 AM

0/0

For some reason the internal webserver that ships with VS2005 seems to think that, as long as you are not logged in, all content on the webserver is protected, not just .aspx pages.

Therefore you dont have access (yet) to the CSS files.

If you login and retrun to the login.aspx page, you should see that the CSS is loaded correctly. Also, if you deploy the solution to an IIS server, you'll see that the CSS is loaded correctly.


There are 10 kinds of people: Those who understand binary and those who do not
---
If the reply answered your question please Mark it as "Answered". This would help people know that the question has been answered.
ryeisdead
Asp.Net User
Re: CSS not working upon debug8/16/2007 8:57:59 AM

0/0

wow. i haven't thought of that but you're right. the login page showed up correctly when i reloaded it after logging in. how do i resolve this, though? i'm working with themes and i want the login page to load the default theme as well.
Jean-Paul
Asp.Net User
Re: CSS not working upon debug8/16/2007 11:45:19 AM

0/0

As said, this resolves itself automagicly when you deploy your solution to a production (or staging) environment: when the site/application runs on IIS, it all runs ok.


There are 10 kinds of people: Those who understand binary and those who do not
---
If the reply answered your question please Mark it as "Answered". This would help people know that the question has been answered.
ryeisdead
Asp.Net User
Re: CSS not working upon debug8/17/2007 8:44:43 AM

0/0

ic. thank you for that. see in again next time with another inquiry! :D
Adam.Kahtava
Asp.Net User
Re: CSS not working upon debug8/17/2007 2:53:15 PM

0/0

Here's a related article from ScottGu's blog:

I've helped two people with a problem related to this recently on the ASP.NET Forums, so I thought it might make sense to put out a quick blog post explaining it to others.  Specifically, they were building a secure website using forms-authentication.  They added the below authorization rule within their web.config file:

<authorization>

     <deny users="?"/>

</authorization>

This tells ASP.NET to block all anonymous (non logged-in) users from accessing the content of the web-site, and instead redirect them to a login.aspx page for them to enter their username+password to login.  Because the above authorization directive is not scoped within a <location> element, it applies to all content on the site (except for the login.aspx page).

The issue I've seen folks run into is that they are finding that static images (.jpg, .gif, etc) as well as CSS stylesheets aren't working on their login.aspx page - and they don't understand why.

Why is this is happening?

Read more here: http://weblogs.asp.net/scottgu/archive/2006/01/31/437027.aspx


-Adam Kahtava [http://adam.kahtava.com]
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself Javascript in 24 Hours Authors: Michael Moncur, Pages: 442, Published: 2006
Beginning CSS Web Development: From Novice to Professional Authors: Simon Collison, Pages: 413, Published: 2006
ETC 93, Third European Test Conference, Rotterdam, the Netherlands, April 19-22, 1993: Proceedings Authors: IEEE Computer Society, Convention of National Societies of Electrical Engineers of Europe, IEEE Xplore (Online service), Pages: 548, Published: 1993
Proceedings: Proceedings Authors: Ronnie Mills, James R. Fischer, David H. Schaefer, IEEE Computer Society, George Mason University, Institute of Electrical and Electronics Engineers, Pages: 736, Published: 1988
Programming Firefox: Building Applications in the Browser Authors: Kenneth C. Feldt, Pages: 494, Published: 2007
Web Technology: Including HTML, CSS, XML, ASP, JAVA Authors: Ramesh Bangia, Pages: 560, Published: 2006
Designing Visual Basic.NET Applications Authors: David Vitter, Pages: 544, Published: 2001

Web:
Seam Framework - Redirected to non-existent debug.css This authentication appears to be working just fine. However, upon ... This debug.css is not part of our application and is not referenced directly from ...
CSS Mouse-over problem with IE6 A:active{} state resumed upon return pending mouse event css mouse-over ... Below I show 4 debug modules: a style sheet and 3 web pages. ...
mezzoblue § CSS Crib Sheet When debugging, you may save yourself a lot of headache by simply .... CSS hacks and filters can help you selectively apply CSS (or not apply as the case ...
id selector in css; tag in master page problem - ASP.NET Forums id selector in css; tag in master page problem ... however, upon debug and running the site on both IE and Firefox, ...
Adobe Flex : Flex Builder Release Notes (Macintosh-only) Release a debug session - When an application throws a runtime exception (RTE) and you terminate a debug session, Flex Builder does not ...
Re: IIS raises an exception when I use https to connect WCF service Jul 28, 2008 ... The debugger does not have a current process or thread ... (microsoft.public. inetserver.iis) ... RE: SharePoint and Company Web not working ...
Andy Budd::Blogography: Most Common CSS Problems Valid CSS and XHTML are good to help debug CSS. ... cool sites are in a folder in my favorites called “CSS Snobs” - not because I feel looked down upon, ...
Clean Up Debugging - Snook.ca @Assaf: If you find that using alert() works for your debugging, I'd guess you' re not working on anything more complicated than click events; as soon as you ...
Advanced .NET Debugging (2) You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. If you are not already using it go quickly, download and start working with ...
JeffCroft.com: A follow up on CSS frameworks Scorn upon them, not upon you - you and the other Blue Flavor guys I’ve ..... I get to spend more time developing and less time debugging whats not to like? ...




Search This Site:










theming using skins

ignoring elements from the master page

where is the bug, child, master page or sqldatasource

printing, masterpages, and css

change submenu position

callbackresult not working with masterpage

menu control problem

page flash from using master page

sitemap class

help!!!horizontal navigation of links

how to acces control from masterpage

menu control is adding \\ before the child path

using .browser files to taget a broswer with a specific masterpage?

treeview xhtml transitional validation error

sort treeview nodes

web.sitemap _blank fix

menu control slow response

navigation objects [not impressed]

how could i enhance a control to have more action?

knowing which page you're on with a wizard control

the following code give an error

treeview item

themes not being applied

default button when using a masterpage

sitemap and role based access(custom roles)

custom sitemap provider, problem setting staticmenuitemstyle in menu control

use masters or not?

force a menu click

can not apply theme/css on <div runat=server>

basic treeview issue

  Privacy | Contact Us
All Times Are GMT