GDocsOpen - Open, Edit and Save DOC and XLS files directly from Windows using Google Docs

Regular button

Using ButtonType="Regular", you have everything you could normally have in the classic Button control. You have a OnClientClick event where you could hook up your client code.

A nice feature of the YUIAsp.Net Button is that it's Text property accepts HTML, so you can put images or nice formatted text inside the Button.

		<yui:Button ID="btnClientSide" ButtonType="Regular" Text="No <b>postback</b> please" 
        OnClientClick="PushAction" runat="server"/>
	

The client side method will be called with 2 parameters: the client instance of Button class, and an empty argument, which can cancel the postback if needed using "argument.cancel=true".

		function PushAction(sender, args)
    {
        alert("You clicked me! I won't post!");
        args.cancel = true; // prevent postback
    }