CSS Files

B

Barry

Hi

I am updating a website downloaded from Microsoft, in the aspx files there
are controls having referance to cssclass but there are no css files in the
project, have i missed something or has MS done away with css files

eg
<asp:TextBox Width="500px" Text='<%# Bind("Title") %>' runat="server"
ID="TitleTextBox" CssClass="post_title"
MaxLength="50"></asp:TextBox>


TIA
Barry
 
K

Kevin Spencer

You've missed something.

First, you didn't say where you "downloaded a website" from, other than
"Microsoft," so we have no idea where you got what you're posting, and
therefore, have no way of finding out what the reference to a CssClass might
have come from or referred to.

Here's a tip: Pretend we are all total strangers (a safe bet) and that we
know nothing about your situation (another safe bet). Tell us anything that
might contribute to finding out the nature of the problem. In this case, you
say that "there are no css files in the project." What project? Where did
you get it from? Saying "Microsoft" is like saying you got a book from the
Library of Congress. Be as specific and detailed as possible.

Solving any problem or puzzle is basically the same process that is used to
solve mathematical problems. Without certain data, the problem cannot be
solved. Example:

X + Y = 100.
Y is a number between -50.333 and 50.666.
What is the value of X?

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Barry said:
Hi

I am updating a website downloaded from Microsoft, in the aspx files there
are controls having referance to cssclass but there are no css files in the
project, have i missed something or has MS done away with css files

eg
<asp:TextBox Width="500px" Text='<%# Bind("Title") %>' runat="server"
ID="TitleTextBox" CssClass="post_title"
MaxLength="50"></asp:TextBox>

Css styles can also be placed in a style tag in the page, so there
doesn't need to be any css file.

If there are no style tag in the page, look for a link tag that
references a css file. If there is no link tag either, the CssClass
property is probably just something that was accidentally left in the code.
 
B

Barry

Hi

I found that there are some files named "default.css" in "App_Themes"
folder, changes to these files reflects on the pages.

Barry
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Barry said:
Hi

I found that there are some files named "default.css" in "App_Themes"
folder, changes to these files reflects on the pages.

Barry

Yes. If you examine the generated html code in the pages, you see that
there are link tags to these files.
 

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

Top