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
Post a Comment