Master Page problem

H

Houston Lucifer

Hi all, i have a login form which has a master page. I have style sheet for
the master page. But, the login form doesn't inherit that style. All other
forms inherit the master page style. Is there something that i am missing?

Thanks
 
H

Houston Lucifer

What i found out was the style doesn't appear until i login to the
application (i am using Forms authentication). Somehow the style doesn't show
up when it is anonymous login. Don't know why.
 
C

clintonG

See what happens when you implement the following in your web.config and
follow through as needed if implementing Roles...

<!--
ANONYMOUS IDENTIFICATION
=====================================================================================
http://msdn2.microsoft.com/en-us/library/91ka2e6a
-->
<anonymousIdentification enabled="true"
cookieless="UseDeviceProfile"
cookieName=".ASPXANONYMOUS"
cookiePath="/"
cookieProtection="All"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieTimeout="30"
domain="eaxmple.com"/>


--
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
H

Houston Lucifer

I tried it but it didn't work. When i change the authenticationMode =
"Windows" instead of forms, the style from the master page shows up.
 
C

clintonG

Sounds wierd, as if the login.aspx is in a folder without forms
authentication permissions or if on your own server using goofy IIS
settings. I'm guessing at this point. Have you gone over your web.config? Do
you have all of the requires allow or deny attributes set?

<%= Clinton Gallagher
 
H

Houston Lucifer

It definitely is wierd. Web.config has
<authorization><deny users="?"></authorization> and <authentication
mode="Forms"><Forms loginUrl="login.aspx"
defaultUrl="default.aspx></authentication>

I have even tried removing the login view control from the master page.
 
C

clintonG

Did you try to remove deny users="?" and see what happens? Try allow
users="*" and see what happens. Then check out the new Location element
[1-2].

If you get styles when you are authenticated it seems to me that the problem
is in web.config somewhere.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://msdn2.microsoft.com/en-us/library/b6x6shw7(en-US,VS.80).aspx
[2] http://msdn2.microsoft.com/en-us/library/ms178692
 
H

Houston Lucifer

When i copied the website to my localhost, everything seems to be working fine.
Somehow, the default webserver that comes with the VS 2005 doesn't realize the
style. Thanks for the help.

clintonG said:
Did you try to remove deny users="?" and see what happens? Try allow
users="*" and see what happens. Then check out the new Location element
[1-2].

If you get styles when you are authenticated it seems to me that the problem
is in web.config somewhere.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://msdn2.microsoft.com/en-us/library/b6x6shw7(en-US,VS.80).aspx
[2] http://msdn2.microsoft.com/en-us/library/ms178692



Houston Lucifer said:
It definitely is wierd. Web.config has
<authorization><deny users="?"></authorization> and <authentication
mode="Forms"><Forms loginUrl="login.aspx"
defaultUrl="default.aspx></authentication>

I have even tried removing the login view control from the master page.
 
C

clintonG

I stopped using the built-in server and use HTTP. That also enables me to
load any web I am working on directly from the browser given the fact that I
can at least remember its name. Other issues caused me conflict. I think its
better to use HTTP and I'm glad to hear your current problem is resolved
giving you time to start worrying about the next one :)

<%= Clinton Gallagher

Houston Lucifer said:
When i copied the website to my localhost, everything seems to be working
fine.
Somehow, the default webserver that comes with the VS 2005 doesn't realize
the
style. Thanks for the help.

clintonG said:
Did you try to remove deny users="?" and see what happens? Try allow
users="*" and see what happens. Then check out the new Location element
[1-2].

If you get styles when you are authenticated it seems to me that the
problem
is in web.config somewhere.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://msdn2.microsoft.com/en-us/library/b6x6shw7(en-US,VS.80).aspx
[2] http://msdn2.microsoft.com/en-us/library/ms178692



Houston Lucifer said:
It definitely is wierd. Web.config has
<authorization><deny users="?"></authorization> and <authentication
mode="Forms"><Forms loginUrl="login.aspx"
defaultUrl="default.aspx></authentication>

I have even tried removing the login view control from the master page.

:

Sounds wierd, as if the login.aspx is in a folder without forms
authentication permissions or if on your own server using goofy IIS
settings. I'm guessing at this point. Have you gone over your
web.config?
Do
you have all of the requires allow or deny attributes set?

<%= Clinton Gallagher

message I tried it but it didn't work. When i change the authenticationMode =
"Windows" instead of forms, the style from the master page shows up.

:

See what happens when you implement the following in your
web.config
and
follow through as needed if implementing Roles...

<!--
ANONYMOUS IDENTIFICATION
=====================================================================================
http://msdn2.microsoft.com/en-us/library/91ka2e6a
-->
<anonymousIdentification enabled="true"
cookieless="UseDeviceProfile"
cookieName=".ASPXANONYMOUS"
cookiePath="/"
cookieProtection="All"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieTimeout="30"
domain="eaxmple.com"/>


--
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/





in
message What i found out was the style doesn't appear until i login to
the
application (i am using Forms authentication). Somehow the style
doesn't
show
up when it is anonymous login. Don't know why.

:

Hi all, i have a login form which has a master page. I have
style
sheet
for
the master page. But, the login form doesn't inherit that style.
All
other
forms inherit the master page style. Is there something that i
am
missing?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top