Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Respected Experts,

I am a beginner. Please explain to me how to begin with ASP.net. I am confused.

I want to develop a dynamic web site. For which I am going to use a SQL Server database.

Now please tell me what will be the role of CSS and a Master Page. I am confused.

if there is Master Page then why use CSS?.

Also, browser compatibility issues and please tell me shall I use CSS and Master Page in same project, is it possible?
Posted
Updated 14-Feb-11 23:50pm
v2

Regarding Master page and CSS: The master page generally contains the CSS data that is general to a collection of pages: A single change to the Master page affects all the pages. So, yes, you can (and do) use CSS in a master page in a single project.

CSS allows an overall style (the background colour for example) to be inherited by all the styles below that: so you specify it once and all other parts of the page inherit it.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Feb-11 22:14pm    
Good, my 5.
--SA
If you're a complete beginner at ASP.net I highly recommend going to:

http://www.asp.net/

and watch a few videos first. then you'll have a much better idea why CSS and Master Pages are useful, if not essential. you might be confused now, but invest a little time and things will get better.

good luck!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Feb-11 22:15pm    
Even better, my 4.
--SA
Hope Asp.Net[^] will give you an idea.

Better refer some online books and practice then start your work.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Feb-11 22:16pm    
Not bad, but I would prefer asp.net
--SA
Hi, CSS & Masterpage are two different Concepts.
Consider a scenario where a web application / website in which Header, Footer & Navigation Menu of web page/form is common throughout the application. In this case u use Master page.

CSS is Mainly used for styling the web pages/application.

U can use both master page & css in same project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900