Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anchor tag is not clickable in IE,If i right click and open in new window it is working.but it is working as expected in Chrome.

What I have tried:

<a id="hcaselink" name="hcaselink" style="display:inline-block" target="_parent" runat="server"><label id="lblcase" style="color:Blue" runat="server"/></a>


Href="https://google.com" i have added it is the backend code of the c# asp.net like below
hcaselink.Attributes["href"] = "https://google.com";
Posted
Updated 21-Jul-17 1:04am
Comments
sachin.vishwa90 21-Jul-17 6:53am    
can you show us what the final html rendered in browser?

1 solution

Use this method :

hcaselink.HRef = "https://google.com"


Instead of

hcaselink.Attributes["href"]= "https://google.com"
 
Share this answer
 
v2

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