I have a client side script on the onclick event of a server control button. The script should enable or disable a Calendar control.
Can this be done? Can a client side script enable or disable a server-side control?
I tried doing that, I am making a panel control visible which has a calendar and a button inside, it gives me an error
"document.getElementID("....) is null or not an object"
You'd want to slap a JavaScript event on a control via Page.RegisterClientScriptBlock() and Control.Attributes.Add(). I can't help you on the specifics of JavaScript.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.