JavaScript - ClientScript.RegisterStartupScript & btn.Attributes.Add("onclick", "return sampleValidati

Asked By Ali Khan on 21-Jul-12 09:21 AM
we can javascript from Server side by
ClientScript.RegisterStartupScript & btn.Attributes.Add("onclick", "return sampleValidation)






when do we prefer the each one in which situation?


Peter Bromberg replied to Ali Khan on 21-Jul-12 09:41 AM
Doesn't matter. They both do the same thing.