Showing posts with label cant. Show all posts
Showing posts with label cant. Show all posts

Monday, March 26, 2012

Newbie cant get CSS working

Hi,

I'm learning to apply CSS on web site. I've put a link ref of the style sheets in the MasterPage.master. (Of course, the css files have been placed at the correct folder).

Inside VS2005, the look is ok; the CSS style applies correctly. But when I preview (or even after publish web site), the styles don't look like working. The colors simply the applied to the text.

I thought inheritance thru the MasterPage.master gave the problem. Then, I just create another webform page without inheriting master page. Putting the css links and the preview result still not ok. Though with VS2005 everything looks alright.

What i've missed? Thanks!

Jack LING

Head section of the MasterPage.master page:

<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>Live</title>
<link href="http://links.10026.com/?link=App_LocalResources/templates/template_css.css" rel="stylesheet" type="text/css" />
<link href="http://links.10026.com/?link=App_LocalResources/templates/theme.css" rel="stylesheet" type="text/css" />
</head>

Hi Jack,

Just a guess here, but I don't think the style sheet should be in the App_LocalResources folder - that strikes me as a special folder that may have varying contents depending where you publish the website. I could be wrong...

Could you run a little experiment? Try puting the stylesheets in the root of your web project and link to them appropriately:

<link href="http://links.10026.com/?link=template_css.css" rel="stylesheet" type="text/css" />

<link href="http://links.10026.com/?link=theme.css" rel="stylesheet" type="text/css" />

See if that corrects the problem. If so then consider moving the /templates folder out of the App_LocalResources folder and just have it sitting directly off the root.

Hope this helps!


Hi Draggor,


Great! Your reminder is correct! So, I won't put things to App_... folders until I learn more about its correct usage.

Thanks much!

Jack LING


is ther any reason you are placing the css file in side the APP_LocalResources folder? I don't think that folder accepts .css type of files and any access to that folder is denied i think.

You have to place the .css file somewhere else.

newbie configuration question

Hello.

I want to use asp not only with my admin account but also with a normal user account.
But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
bringing the message "The page cannot be displayed".

Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found a
really good web site concerning asp.

Thanks a lot for every little help!
Greetings,
timtos.Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory, choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain and NAMEOFYOURPC the name of your web server.



HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
>
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
>
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found a
> really good web site concerning asp.
>
> Thanks a lot for every little help!
> Greetings,
> timtos.
>
I also have found this (http://msdn.microsoft.com/library/d...sp_tut_00.asp):

Web permissions are set in IIS with the IIS Manager. However, those permissions can be undermined by NTFS permissions on specific files and folders. You may allow a user access to your Web site in IIS, but if NTFS file permissions deny access to an ASP file or a database file, your Web user does not see the file. If you are using Anonymous authentication, you must set NTFS permissions to allow access to the IWAM_ComputerName and IUSR_ComputerName accounts. Please see "Access Control" in Windows Help, the "Security" section in IIS Help, which is accessible from IIS Manager, and the IIS TechNet articles about NTFS Security.
Greetings

Daniel

"Daniel Walzenbach" <daniel.walzenbach.NOSPAM@.freudenberg.de> schrieb im Newsbeitrag news:u2J2C5mlDHA.1084@.tk2msftngp13.phx.gbl...
Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory, choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain and NAMEOFYOURPC the name of your web server.



HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
>
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
>
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found a
> really good web site concerning asp.
>
> Thanks a lot for every little help!
> Greetings,
> timtos.
>
Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory, choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain and NAMEOFYOURPC the name of your web server.



HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
>
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
>
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found a
> really good web site concerning asp.
>
> Thanks a lot for every little help!
> Greetings,
> timtos.
>
Thanks a lot for the detailed answers!
I will go through this informatin right now.

So thanks again and greetings,
timtos.
-- Original Message --
From: Daniel Walzenbach
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Sunday, October 19, 2003 8:37 PM
Subject: Re: newbie configuration question

I also have found this (http://msdn.microsoft.com/library/d...sp_tut_00.asp):

Web permissions are set in IIS with the IIS Manager. However, those permissions can be undermined by NTFS permissions on specific
files and folders. You may allow a user access to your Web site in IIS, but if NTFS file permissions deny access to an ASP file or a
database file, your Web user does not see the file. If you are using Anonymous authentication, you must set NTFS permissions to
allow access to the IWAM_ComputerName and IUSR_ComputerName accounts. Please see "Access Control" in Windows Help, the "Security"
section in IIS Help, which is accessible from IIS Manager, and the IIS TechNet articles about NTFS Security.
Greetings
Daniel
"Daniel Walzenbach" <daniel.walzenbach.NOSPAM@.freudenberg.de> schrieb im Newsbeitrag news:u2J2C5mlDHA.1084@.tk2msftngp13.phx.gbl...
Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory,
choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain
and NAMEOFYOURPC the name of your web server.

HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found
a
> really good web site concerning asp.
> Thanks a lot for every little help!
> Greetings,
> timtos.
I also have found this (http://msdn.microsoft.com/library/d...sp_tut_00.asp):

Web permissions are set in IIS with the IIS Manager. However, those permissions can be undermined by NTFS permissions on specific files and folders. You may allow a user access to your Web site in IIS, but if NTFS file permissions deny access to an ASP file or a database file, your Web user does not see the file. If you are using Anonymous authentication, you must set NTFS permissions to allow access to the IWAM_ComputerName and IUSR_ComputerName accounts. Please see "Access Control" in Windows Help, the "Security" section in IIS Help, which is accessible from IIS Manager, and the IIS TechNet articles about NTFS Security.
Greetings

Daniel

"Daniel Walzenbach" <daniel.walzenbach.NOSPAM@.freudenberg.de> schrieb im Newsbeitrag news:u2J2C5mlDHA.1084@.tk2msftngp13.phx.gbl...
Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory, choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain and NAMEOFYOURPC the name of your web server.



HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
>
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
>
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found a
> really good web site concerning asp.
>
> Thanks a lot for every little help!
> Greetings,
> timtos.
>
Thanks a lot for the detailed answers!
I will go through this informatin right now.

So thanks again and greetings,
timtos.
-- Original Message --
From: Daniel Walzenbach
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Sunday, October 19, 2003 8:37 PM
Subject: Re: newbie configuration question

I also have found this (http://msdn.microsoft.com/library/d...sp_tut_00.asp):

Web permissions are set in IIS with the IIS Manager. However, those permissions can be undermined by NTFS permissions on specific
files and folders. You may allow a user access to your Web site in IIS, but if NTFS file permissions deny access to an ASP file or a
database file, your Web user does not see the file. If you are using Anonymous authentication, you must set NTFS permissions to
allow access to the IWAM_ComputerName and IUSR_ComputerName accounts. Please see "Access Control" in Windows Help, the "Security"
section in IIS Help, which is accessible from IIS Manager, and the IIS TechNet articles about NTFS Security.
Greetings
Daniel
"Daniel Walzenbach" <daniel.walzenbach.NOSPAM@.freudenberg.de> schrieb im Newsbeitrag news:u2J2C5mlDHA.1084@.tk2msftngp13.phx.gbl...
Timtos,

AFAIK you have to configure the NFTS permissions on your web server for your specific directory. Try to right click your directory,
choose properties > security and add rights for the user YOURDOMAIN\IUSR_NAMEOFYOURPC where YOURDOMAIN is the name of your domain
and NAMEOFYOURPC the name of your web server.

HTHs

Best regards

Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

"timtos" <tirobu@.gmx.de> schrieb im Newsbeitrag news:bmu2ad$ian$1@.news.uni-koblenz.de...
> Hello.
> I want to use asp not only with my admin account but also with a normal user account.
> But being logged in as a normal user I cant create files or directories in the inetpub\wwwroot\ directory and http://localhost is
> bringing the message "The page cannot be displayed".
> Where can I configure iis or a user account that way that a normal user can use asp/ localhost. I know that this is a very basic
> question but in my asp-book nothing is mentioned about it. So also a recommended reading would be nice. Until now I havent found
a
> really good web site concerning asp.
> Thanks a lot for every little help!
> Greetings,
> timtos.