I often need to read some of the content according to the situation, my implementation is: put some controls in a panel, join the CSS style from CodeBehind, then CSS Style implements, maintains the content of the initialization.
The procedure is as follows:
// This is a function that sets the Panel read-only, where Staffvac is the name of the Web Form project static public void fcnsetPanelreadOnly (System.Web.ui.WebControls.Panel Pnli, Bool Blreadonly) {ifadonly == false Return; int tentlcnt = pnli.controls.count; for (int i = 0; i // This is an HTC file Athos.dhtmlbehavior.readonly.htc, stored in the script directory of the current Web Form project