Click here to Skip to main content
16,020,347 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I done one css coding and i linked in asp.net within tag but not working.my coding below.i saved that file name in hyper.css


Actually i used id="link" but u told i want to use class name "link".how to do please tel me


CSS
.link
{color:red;}
.link:hover
{color:blue;}


Asp.net:
HTML
<link href="hyper.css" rel="stylesheet" style="text/css">

<hyperlink id="link"></hyperlink>
Posted
Updated 22-Jan-14 19:32pm
v2

1 solution

Pls go through this link
http://www.w3schools.com/css/[^]
XML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="jquery-1.10.2.js" type="text/javascript"></script>
    <script type="text/javascript">
    </script>
    <style type="text/css">
        .link
        {
            color: red;
        }
        .link:hover
        {
            color: blue;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HyperLink Text="upload" ID="HyperLink1" CssClass="link" runat="server" />
    </form>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900