Hi Mark Rae
Well I am not an expart of this things. But you see Asp.net 2.0 is
giving you an opportunity to specify client side code in
"OnClientClick" property of asp.net 2.0 Button or Image Button.
So its better to use this property very often. But you see if your
button acts differently when you post back a page, and you need to bind
different onclick client function depending on context. In that case
you need to use Button.Attributes.Add("onclick","function();"); to make
it work the way you want.
If you are using a button which always serve one purpose, that is
confirm javascript dialog. In asp.net 2.0 I would use the OnClientClick
property in the designer to specify my client side code.
Md. Masudur Rahman
www.kaz.com.bd
KAZ Software Ltd.
Software outsourcing made simple...