Calling JavaScript function from an external file in asp.net - error -


i have javascript function in separate file name home.js / want call / asp button / , onclientclick event / following error occurs: parser error message: 'onclientclick' property cannot set declaratively. / not know problem?

thank you.

you have set 'onclientclick' property in code behind, e.g.

btnsave.onclientclick = "myjsfunction();"; 

you can't set in markup (declaratively).


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -