I have a check box on a page. I want to set it’s enable property from a codebehind method.
I have done this Enabled= '<%#IsSMSEnabled()%>' />
IsSMSEnabled returns true or false depending on some logic.
Check box is alwyas enabled no matter what is returned by IsSMSEnabled()%
The
<%# expressionsare evaluated atDataBind()time and are not evaluated at all ifDataBind()is not called. You can callDataBind()inPreRenderComplete