ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Microsoft Related >> ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Question
How do you use css in asp.net?
 Question Submitted By :: ASP.NET
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
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
Amit
 
Answer
# 2
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
Chithy
 
 
 
Answer
# 3
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
Tza
 
Answer
# 4
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
Tza
 
Answer
# 5
* 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
Amit Patel
 
Answer
# 6
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
Murali
 
Answer
# 7
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
Pradeep Goyal
 
Answer
# 8
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
Akriti
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How does the browser enable AutoPostBack functionality?   2
Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? Visual-Soft 3
What is the difference between Trace and Debug?   2
What is the use of @Register directives?   1
public key? Microsoft 1
Turn Off ASP Session State on an IIS 5.1 Web Site   1
In a Code-Behind class generally which type of code is found ?   3
Hi..I have created a website in Asp.net with C# i want to add Chinese language in my website..could any body tell me that how can i add dynamically this language on user's request...??? thanks n advance...   1
In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events? Syntax-Softtech 5
How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits? CoreObjects 3
The technical part was on ASP.Net only of web services. Symphony 1
When is validation done on the client? How does client-side validation improve the efficiency of an application?   1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com