I spent about whole day today try to fix this bloody problem, this is my scenario:
I am having a checkboxlist control (dont ask me why use this control coz i am just fixing the other ppl's issue), the items in the checkboxlist are loaded from the header of a gridview, one of the items in the checkboxlist needs to be disabled, and once a button been clicked on the page, an ajax modal popup extender opens up and the checkboxlist item will appear there with one or more items need to be disabled.
Note: I do use master page and content page on my web application.
It all works as expected, but as most of you knew, this approach is not w3c validated since w3c doesn't allow this <span disabled = "disabled">, and w3c compliance is one of my requrement.
to my best knowledge, i googled and tried nearly everything i can find but still without any luck.
and this is the code in the Page_Load event and i believe might work but need to be tweaked:
string jsName = "DisableScript";
Type jsType = this.GetType();
ClientScriptManager csm = Page.ClientScript;
if (!csm.IsStartupScriptRegistered(jsType, jsName))
StringBuilder sb = new StringBuilder();
View Complete Post