need css about clear explaination of using asp.net

Posted by Hemachandranvperumal under CSS 3 on 11/1/2012 | Points: 10 | Views : 1983 | Status : [Member] | Replies : 2
-how to use css in asp?
-wat type language using in asp.net(scripting language)?




Responses

Posted by: Deepraj on: 11/3/2012 [Member] Starter | Points: 25

Up
0
Down
css can be used for applying styles for asp elements in two ways.
1)Applying styles using css classes
2)Applying styles using Attribute values

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<title></title>

<style type="text/css">
.exstyle
{
background-color:Red;
border:2px solid green;
}

</style>

</head>
<body>
<form id="form1" runat="server">
<div>


Applying styles using css class: <asp:TextBox runat="server" ID="extxt" CssClass="exstyle"></asp:TextBox><br />
<br /><br />

Applying styles using attribute values:<asp:TextBox runat="server" ForeColor="Red" BackColor="Aqua"></asp:TextBox>

</div>
</form>
</body>
</html>



copy paste and see the output in browser






Hemachandranvperumal, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/3/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
good explanation deepraj
asp.net is a framework which supports visual basic,c# and J# languages .with in a single webpage you can use only single language . VB script was the default language and you can change your language in the page directives

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Hemachandranvperumal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response