开发者

Adding asp.net server side controls through javascript dynamically

开发者 https://www.devze.com 2023-01-20 22:02 出处:网络
Is there a way to add asp.net server side control dynamically on the webpage without causing postback. Like can I add a calender control dynamically on a button click and 开发者_如何学运维handle calen

Is there a way to add asp.net server side control dynamically on the webpage without causing postback. Like can I add a calender control dynamically on a button click and 开发者_如何学运维handle calender events to do some other work....

Thanks


There's no way to do that without posting back to the server. However, postbacks don't have to be intrusive: for instance, you might use an UpdatePanel control to perform a partial postback that only updates the panel's contents.

See also the DynamicPopulate extender provided by the AJAX Control Toolkit, a good implementation of what you want to achieve.

0

精彩评论

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