I would like to show Confirm alert on button click, but confirm message I would like to show from a global resource file? How do I do this?
Something like this.
OnClientClick=”return confirm(‘<%$ Resources:MfnWeb, ConfirmCloseAccount%>’)”
I would like to show Confirm alert on button click, but confirm message I
Share
You can simply set OnClientClick as you suggested in the codebehind file, eg. in PageLoad event, or write a element inside page head with a function ‘customized’ for each page:
Then call this function in any javascript code you want.