开发者

ASP.NET - server side control & javascript interaction

开发者 https://www.devze.com 2022-12-21 21:38 出处:网络
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 ?

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

精彩评论

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

关注公众号