Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.net Button click issue in chrome

Tags:

c#

ajax

asp.net

Hi I'm working on an c# ASP.NET app. I have an asp button on my app with an associated server side click event. The button is inside the updatepanel.

Now, this click event is not being fired with Google chrome (works fine on IE, Mozilla).

Please provide a solution for this

like image 250
Salini S Avatar asked Nov 14 '22 22:11

Salini S


1 Answers

I had this issue too, ASP.NET renders the control differently for WebKit.

I ended up using a normal on my page, I then created a class that replicated the with the properties I needed, I could then use this class instead of the in my code, the advantage for me was I knew then it would render the same across all browsers the same.

You could also use browser a definition file to ensure the control is rendered correctly for Webkit.

like image 163
DevTez Avatar answered Dec 19 '22 19:12

DevTez