tags:

views:

18

answers:

1

Hi,

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

+1  A: 

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.

Frédéric Hamidi