views:

184

answers:

2

Hi there, I'm working on an ASP.NET app I have an asp button on my app with an associated server side click event

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

Any idea? tks

A: 

can you provide the source code

andrew Sullivan
I'ts not much I'm hadding the event simply by doingthis.MyButton.Click += new EventHandler(MyButtonGotClicked);(this button comes from a base class from wich my page is inherited)and the method 'MyButtonGotClicked' is just not beeing called. I put a breakpoint at the beggining of the method and it's not going there at all
DJPB
is it working in other browser
andrew Sullivan
yes, we're testing it with IE, FireFox and chrome. IE and fire fox works fine, chrome is the only one where it fails
DJPB
A: 

I'm having the same issue. Only problem in Chrome, all other browsers work. ASP:BUTTON does not do postback to server on Chrome.

ken larkin
and the most anoying thing is that this button is created on a base class and all other pages that extends it, the button is working fine. The issue is only in one page. AAAHHH!!!!
DJPB
in your case it might be invalid html markup. try validate the markup. But I still have the issue with correct markup.
ken larkin
YEY!!! OK, finaly figured out what was the problem. I was adding watermarked text on some txtBoxes as tooltips, those tool tips length were bigger than the txt maxlenght. this made the page invalid and that's why post back wasn't being called. chrome (version 5) detects this situation, later versions and IE don't. AAAHHH!!!!
DJPB
cheers it was some jquery in my code that messed up the html. Similar issue.
ken larkin