Dynamic Controls in ASP.NET

Results 1 to 2 of 2

Thread: Dynamic Controls in ASP.NET

  1. #1
    Join Date
    Dec 1969

    Default Dynamic Controls in ASP.NET

    Is it possible to dynamically create a Custom Control (.ascx)? Here&#039;s what I&#039;m trying to do.<BR><BR>OAS_Client.CustomControls.AutoShopServi ces x = new OAS_Client.CustomControls.AutoShopServices();<BR>t his.PlaceHolder1.Controls.Add(x);<BR><BR>error CS0144: Cannot create an instance of the abstract class or interface &#039;OAS_Client.CustomControls.AutoShopServices&# 039;<BR><BR>Thanks.

  2. #2

    Default Page.LoadControl

    public System.Web.UI.Control LoadControl ( System.String virtualPath )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts