ASP.NET - server side control & javascript interaction
on a page with textbox control, lets say this textbox is disabled on server side page load. 开发者_开发知识库What would happen if a javascript tries to set visibility of the textbox to false ?
Edit: Can the textbox be hidden by javascript even though it's disabled ?
TIA
Yes, setting disabled on the serverside only adds the disabled attribute.
controlID.Attributes.Add("disabled", "true");
This disables the control...
controlID.Attributes.Remove("disabled");
This enables the control.
精彩评论