PDA

View Full Version : Event onCLick and Handler.



flaviodamaia
Sep 03, 2008, 9:24 AM
Hey guys,


<DIV id=result_box dir=ltr> I'm creating a window and I added a button, but I'm not able to add the event on the button.
I tried to Handler and onClick and not worked, someone could show an example?

Timothy
Sep 03, 2008, 9:33 AM
Are you using the AutoPostBack property?



...
<ext:Button runat="server" AutoPostBack="True" &#111;nclick="function name" Text="Click me" />
...


Cheers,
Timothy

flaviodamaia
Sep 03, 2008, 10:08 AM
I added AutoPostBack = "true" and worked, but if add the property onclick, ocurrs an error.

Timothy
Sep 03, 2008, 10:24 AM
Can you post an example of your code?

Cheers,
Timothy

flaviodamaia
Sep 03, 2008, 11:42 AM
I added parameter OnClientClick and worked ;D

tks for attention!