Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 12th, 2006, 08:01 AM
Registered User
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I a CSS into an aspx page?

I have coded an aspx file and I want to add a CSS to it.
Please tell me how can I do this if anybody knows .

Old September 12th, 2006, 12:38 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Put this between the head tags:

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

"The one language all programmers understand is profanity."
Old September 13th, 2006, 05:13 AM
Authorized User
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Vafaee,
Adding to what dparson, mentioned, the code he show is used to get the CSS file into the aspx page.
To use the CSS tag use the same code as html
<tagname..... class="cssdefinition">

Vincent Thomas

Similar Threads
Thread Thread Starter Forum Replies Last Post
aspx inside of css nutrino CSS Cascading Style Sheets 6 December 2nd, 2005 05:20 PM
How to pass variables from Aspx page to Asp Page jayaraj Classic ASP Basics 2 May 23rd, 2004 06:56 AM
How to pass the variables in Aspx page to Asp Page jayaraj ASP.NET 1.0 and 1.1 Basics 3 May 23rd, 2004 06:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.