Please tell me what is wrong in my HyperLinks, I have this problem for 2 days and I don't know what to do![]()
I've made a UserControl named "links" with 3 hypeLinks ... here is the code
/**************************
<%@dotnet.itags.org.ControlLanguage="C#"AutoEventWireup="true"CodeFile="links.ascx.cs"Inherits="UserControls_links" %><asp:HyperLinkID="HyperLink1"runat="server"NavigateUrl="~/Site/link1.aspx">Cumpara</asp:HyperLink>
<asp:HyperLinkID="HyperLink2"runat="server"NavigateUrl="~/Site/link2.aspx">Vinde</asp:HyperLink><asp:HyperLinkID="HyperLink3"runat="server"NavigateUrl="~/Site/link3.aspx">Pentru utilizatori noi</asp:HyperLink>
/**************************
Then I've draged that UserControl on my MasterPage, so the links will be showed on every page that uses that MasterPage
When I run the site and click on a link, it redirects me to link1.aspx for example, and then it becomes "visited". But when I'm on that page, the link isn't "active" like it should be (having a specific color or something like that so the user to know what page is visiting)
What should I do?
if you can't see the screenshot, here is the link to the picture:http://pg.photos.yahoo.com/ph/zuperboy90/detail?.dir=/cfa7re2&.dnm=12e7re2.jpg&.src=ph
This is the problem of stylesheet. check a:active for it
http://www.echoecho.com/csslinks.htm
I may take guess that your CSS has to be set up correctly.
a:link {
color:#0088E4;
font-weight:normal;
text-decoration:none;}
a:visited {
color:green;
font-weight:normal;
text-decoration:none;}
a:hover {
color:#0088E4;
font-weight:normal;
text-decoration:none;}
a:active {
color:red;
font-weight:bold;
text-decoration:none;}
Have you tried using just HTML <a></a> links instead of server-side links? If you are just doing a basic link to one page, try using regular HTML links.
Hi,
I test your code, and don't find any problem, and it really works. When the mouse hover on the link, it will show a little blue(color:#0088E4;), after you click, it will be red, and if you go back to show this page, it will be green.
If it's not resolved, please clarify this problem, thanks.
I'm usigt IE7 and it didn't work with Firefox either. I think is because the program (now I use the Web Developer edition from Visual Studio 2005 proffesional), perhaps it will work with Express Edition...I HOPE
I am using IE7 and VS 2005 Team Edition, it really works, including firefox.
Hope this helps.
0 comments:
Post a Comment