The following methods are generally used.
1) Button.attributes.add ("onclick", "JavaScript: Return Confirm ('OK?');");
This method .. Now use the most use ..
There is a article in www.9cbs.net.
http://www.9cbs.net/develop/read_article.asp?id=20892
Everyone can look at it .. There are a lot of gains.
2) Another method .. I don't know if someone is like this. But I am using it .. Very lazy way Beijing is
This can be achieved .. and don't have to increase the action of the server ... but have other consequences .. Nothing .. Know ..
Writing in the BUTTON column in the DataGrid in the DataGrid, written in text (T)
http://www.9cbs.net/develop/read_article.asp?id=20892
It has a presentation as it is.
3) You may sometimes use this kind of use .. that is, you click on the button of the Button of import data .. I hope to pop up an Alert ('Data Import Complete!').
There is another method here .. Many people know that it is used.
Page.registerClientScriptblock (); or page.registerStartupScript ();
These two features are not very big ... and cooperate with .page.isclientscriptblockregistered () or page.isstartupScriptregister ();