Load user controls dynamically without registed on aspx page / web.congf.

Posted by Neha_flower_2003 under Regular Expressions on 5/27/2009 | Views : 2975 | Status : [Member] | Replies : 3
Dear sir,
I would like to add user controls dynamcally but without addedd it refrence on aspx page or not in web.confg.

wants to add refrenec dynamically also?
can any one solve my problm?


thanks with reagrds




Responses

Posted by: Vuyiswamb on: 5/27/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Morning Neha_flower_2003

A usercontrol needs to be registered in a Page before it can be used. After you have registered it , you can add it dynamically.
e.g

http://www.syncfusion.com/FAQ/aspnet/WEB_c13c.aspx


http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx

http://maxi326.wordpress.com/2008/10/02/dynamically-add-user-control-under-updatepanel-in-aspnet/

http://geekswithblogs.net/mnf/archive/2006/08/16/88093.aspx


Thank you for Using Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Neha_flower_2003, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neha_flower_2003 on: 5/28/2009 [Member] Starter

Up
0
Down
should I registed it dynamically?

Neha_flower_2003, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 5/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
No Register it at desgin time and display it dynamically

Thank you for posting at Dotnetfunda
[Administrator]

Neha_flower_2003, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response