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
 
Define ViewState and how can it be used?   6
What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state. Syntax-Softtech 5
What is web.config. How many web.config files can be allowed to use in an application ? Accenture 10
How many web.config files in each solution General-Mills 10
Various types of Page Load functions Net-Solution 4
Explain what a diffgram is and a good use for one? Syntax-Softtech 1
hi all; i need standard notes on .net(basics) for my seminar. im a starter in .net. plz suggest whr can i get satisfactory notes!!!   1
Hi , I am Basha. I am searching a job in dotnet.Plz tell me the order of page events in asp.net 2.0> plz send faq's related to c#.net,asp.net,sqlserver2000 etc. to my mail-id : bashask.ss@gmail.com Sapient 4
Page Life Cycle in ASP.NET Syntel 2
how can i am search the data from database? just like google   2
What is an application domain ? Microsoft 2
witch is the best insistute in sharpoint course.what abt future of share point course.   2
 
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