Click here to Skip to main content
11,409,097 members (65,018 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 10-Jan-13 2:30am
Comments
Turbo_23 at 10-Jan-13 7:34am
   
hi....post your code here.
BalaMahesh at 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'
ryanb31 at 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 at 10-Jan-13 8:14am
   
sorry i didn't get you what you say
ryanb31 at 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?
Turbo_23 at 10-Jan-13 9:54am
   
is it working is safari ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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#
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 330
1 Sergey Alexandrovich Kryukov 310
2 Maciej Los 155
3 Peter Leow 130
4 Dave Kreskowiak 115
0 Sergey Alexandrovich Kryukov 8,676
1 OriginalGriff 6,855
2 Maciej Los 3,322
3 Abhinav S 3,238
4 Peter Leow 3,034


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100