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 (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 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
 
Should user input data validation occur server-side or client-side? Why? NIC 3
Security types in ASP/ASP.NET? Different Authentication modes?   3
When during the page processing cycle is ViewState available?   1
How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP   3
Trigger syntax in sql2000 Wipro 1
Asp.net and asp ? differences?   2
what is the Difference between Dim Object as object AND dim obj as myform? Microsoft 1
on modify statement, executeNonQuery returns zero rows affected even though there has been modification carried out sucessfully in the table.. can anyone tell me is this possible??? if yes, how..??? ADITI 1
Descrie about response.buffer and repsonse.flush ? Cognizent 2
how can you handle "control is not part of this page " error? FactorH 3
under which namespaces connection strings can be defined?   4
About Windows/Forms Authentication   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