How do you use css in asp.net?

Answers were Sorted based on User's Feedback



How do you use css in asp.net?..

Answer / amit

Example,
1 . First u create a css file
2 . write below line between <head></head>
<link href="style.css" rel="stylesheet" type="text/css" />
that will aplay to partuclar page level

Is This Answer Correct ?    92 Yes 15 No

How do you use css in asp.net?..

Answer / chithy

Its Cascading Style Sheet. Allows to set different styles
for the controls that we are using in ASP.net

Is This Answer Correct ?    84 Yes 12 No

How do you use css in asp.net?..

Answer / tza

I think css code will have to write in HTML tag code. And
then this is not allow to write in ASP.net code using C# or VB.

Is This Answer Correct ?    72 Yes 42 No

How do you use css in asp.net?..

Answer / tza

Firstly, we create CSS file in ASP.Net. And then write CSS
code. And then we can call CSS file from html page. the
following

<%@ Language C# style"xxx.css">

Is This Answer Correct ?    48 Yes 27 No

How do you use css in asp.net?..

Answer / amit patel

* Follow Belowe steps
1) Create CSS File
2) Add App_Theme Folder in Solution Explorer
3) Create New Folder named Theme in App_Theme folder
4) Put Css into Theme Folder
5) in Page Directive of any pages of .net put beolwe line
<%Page Theme="Theme" %>

Is This Answer Correct ?    30 Yes 9 No

How do you use css in asp.net?..

Answer / murali

1. You can create stylesheet in solution explorer
2. write the css code
3. write and include this code in asp.net tag page
<link rel="stylesheet" type="text/css"
href="....\...\Sample.CSS" />

Is This Answer Correct ?    18 Yes 9 No

How do you use css in asp.net?..

Answer / pradeep goyal

1. note down the css code on notepad & add in the project.
2.now go to on project web page's source code then write in
<head> tag
<link rel="stylesheet" type="text.css" href="file.css"/>
3. Run the project and see css will be display

Is This Answer Correct ?    5 Yes 6 No

How do you use css in asp.net?..

Answer / akriti

first including css file in head tag.style="text/css" then
using <style> tag.then within style tag defining class u
want to apply..like .style1{font:red}
then including this class in particular tag..
<h1 class=style1>This is css</h1>

Is This Answer Correct ?    15 Yes 21 No

Post New Answer

More ASP.NET Interview Questions

How many types of validation are there?

0 Answers  


what is the difference b/w Asp.net server controls and html server controls in .net?

2 Answers   iGate, Profiniti Systems,


What is the main use of Response.Output.Write()?

4 Answers   Siebel,


What are cao and sao.

0 Answers  


Which methods validate all the controls on a page?

0 Answers  


What is difference between abstract class and an interface?

0 Answers  


What is an il?

0 Answers  


What is CLR ? Differentiate between CLR & CTS.

7 Answers   3i Infotech, TCS,


What base class do all Web Forms inherit from?

9 Answers  


what is the jit? what is the type of jit and purpose of it>

2 Answers   Honeywell,


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

0 Answers   Quest,


Where do the cookie state and session state information be stored?

0 Answers  


Categories