简体   繁体   中英

ASP.net Button click issue in chrome

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

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.

Try to use:

Page.ClientTarget = "uplevel"

On Page_PreInit. This avoids differences on browsers definition and can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM