Skip to Content
0
Aug 09, 2005 at 01:22 PM

How to achieve a client side validation for a sap:button

14 Views

Hi,

I have got a <sap:button> on my Iview.

Before the PostBack I would like to give the user the choice, whether the site should be posted back or not.

The user should get a javascript:confirm box to decide.

With the ASP.net Button Control I would add an attribute to the button

btnConfirm.Attributes.Add("onClick","return confirm();");

Because the sap:button has no Attributes Property I cant achieve the same. Do you have got a workaround for this?

Regards

Erhan