Click here to Skip to main content
15,896,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a problem with Link button it is not working in chrome browser,
I have Login page in that i have forgot password link button.
Other than chromebrowser it working fine (clicked on that link it is redirecting to Forgotpage.aspx),but in chrome its not happening(click event is not happening.
Please help me any one...
Thanks Advance....
Posted
Comments
[no name] 10-Jan-13 7:34am    
hi....post your code here.
BalaMahesh 10-Jan-13 8:12am    
protected override void OnPreInit(EventArgs e)
{

if (Request.UserAgent != null && (Request.UserAgent.IndexOf("AppleWebKit") > 0)) // added for compatibility issues with chrome
{
this.ClientTarget = "uplevel";
}

base.OnPreInit(e);
}


and

if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}
This two ways i done but it is not working'
ZurdoDev 10-Jan-13 8:06am    
Chrome has built in webtools. Have you inspected the element to make sure something about it is not getting blocked? For example, by default IE9 will disable links if you are on SSL and your link is pointing to non-ssl site.
BalaMahesh 10-Jan-13 8:14am    
sorry i didn't get you what you say
ZurdoDev 10-Jan-13 8:15am    
Use chrome's developer tools to see what is happening on the client side. Is it an tag? What is actually getting rendered?

1 solution

IF you right click on the button in Chrome and choose 'inspect element', you can see the HTML at that point. If you click on the 'sources' tab, you can view and debug javascript. You should not have to do anything for Chrome, your code should just render links that work. I've never written browser specific code in ASP.NET, or in MVC. In the javascript and CSS, yes, but not in C#
 
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