user controls and weird shit
Date: 05/25/06
(Asp Dot Net) Keywords: java, web
Hi,
I am dynamically loading a user control onto my web form. My web form has a few buttons on it. These buttons are not firing their onclick events, they aren't even doing a postback. When I go to view source, I see this:
***onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("cmdTopSave", "", true, "", "", false, false))"***
I looked at some other pages that used user controls and they had the same thing. My pages without user controls do not contain the above code. I am assuming the reason my button click events are not doing a server side postback is because the onclick event is wired to this javascript function.
Does anyone know why this function is wired to my onclick event? How to override/delete it so that I can have a normal server postback??
Thanks.
Source: http://community.livejournal.com/aspdotnet/67808.html