How do you use css in asp.net?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "<EmpID>" & TxtEmpId.Text & "</EmpID>" & _ "<Empname>" & TxtName.Text & "</Empname>" & _ "<EmpSalary>" & TxtSalary.Text & "</EmpSalary>" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file <?xml version="1.0" encoding="utf-8" ?> <Employee> <empdetails> <empid>100</empid> <empname>xxx</empname> <empsalary>2000</empsalary> </empdetails> <EmpDetails> <EmpID>yyy</EmpID> <Empname>dddd</Empname> <EmpSalary>77777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrrr</EmpID> <Empname>rrrr</Empname> <EmpSalary>6666</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>qaqa</EmpID> <Empname>sini</Empname> <EmpSalary>50000</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>errrrrrrrr</EmpID> <Empname>rrrrrrrrr</Empname> <EmpSalary>677777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrr</EmpID> <Empname>rrr</Empname> <EmpSalary>33</EmpSalary> </EmpDetails> </Employee>
Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice
What is custom tag in web.config ?
2 Answers Accenture, BirlaSoft,
What is a web pool?
Mention the namespace that is used to include .net data provider for sql server in .net code?
Give an example of cookie abuse.
What is GAC in ASP.NET 2.0
Is it possible to write code in many languages in one asp.net project?
What is a Cookie? Where is it used in ASP.NET?
What is the difference between and ActiveX dll and control?
Define the term Scavenging in Caching?