MapperUtilsLockControl Method |
Lock the specified control. Note that the manner in which the locking is
performed is control-type-specific. Use UnlockControl() to undo this operation.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void LockControl(
WebControl ctrl
)
Public Shared Sub LockControl (
ctrl As WebControl
)
Parameters
- ctrl
- Type: System.Web.UI.WebControlsWebControl
The control to lock.
Remarks
In .Net 2.0 (unlike 1.1), if you set TextBox.ReadOnly=true, the TextBox value
will NOT be populated from the post-back (see TextBox.ReadOnly docs). Since
we sometimes set the value of such locked TextBox controls programmatically
on the client in javascript we therefore don't set .ReadOnly=true. Instead,
we set the "readonly" attribute ourselves, so look for that!
See Also