开发者

Adding asp.net server side controls through javascript dynamically

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜