开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜