C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

How to use style sheet in Master Page in .NET


Posted Date: 04 Nov 2009      Posted By: jatin lalcheta      Member Level: Bronze     Points: 1   Responses: 4



Hello,

Please tell me how to use style sheet in master page..





Responses

Author: Rajapandian    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

Add style sheet like below

<link rel="stylesheet" type="text/css" href="Your css file name here" />



Author: Anuraj    04 Nov 2009Member Level: DiamondRating: Revenue Score: 0     Points: 0

You can use it like normal ASPX Page.

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Author: Deepak Yadav    04 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,
Jatin,
Master pages are also like simple web page but there data is to be shown on many pages of your site, so make a good css first , for eg."style.css"
Now in the head section of your master page for eg. mp1.aspx include this code in your head section

<head>
<link href="/styles.css" type="text/css" rel="stylesheet" />
</head>


And now you can use this css on your master pages elements
Even if now you are having problem then msg me

Thanks
Deepak Yadav



Author: greeny_1984    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

If you declare style sheet in a master page then it would be

applicable to all the content pages.You can declare a style sheet

using a link tag under a head tag



<link href="stylesheet.css" type="text/css" rel="stylesheet"/>


Regards,
Greeny_1984

Rate this Response[Excellent/Good/Poor]
FRESHERS check this link
Need help from me join here



Post Reply
You must Sign In to post a response.
Next : Stored Procedures
Previous : Browser close event
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use