Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Travis Pruitt #1
Dynamically Adding User Control with Child User Control
I have a user control that has a child user control. If I drag this
onto the page, it appears and functions normally.
If I attempt to add the user control to a page dynamically, I get the
static content, but the child user control does not appear to render.
Any ideas on how I can fix this?
I'm dynamically creating the control using:
ReportControl_ascx rc =
(ReportControl_ascx)Page.LoadControl("UserControls/ReportControl.ascx");
rc.ReportInfo = e.SelectedReport;
Control contentCtrl =
this.Master.FindControl("ContentPlaceHolderMain");
contentCtrl.Controls.Add(rc);
Travis Pruitt Guest
-
problem whil adding user control dynamically multiple times
I have two buttons add and save on my aspx page as and when i click on save button ,i want to load user control on form it works fine but when i... -
Composite Web Control and saving user changes on child controls.
Okay, having the same problem many others are having. Here is a simple example I cannot get to work: -- using C# a) Created an ASP.NET Web... -
Child user control accessing parent properties
We have a user control (Titlebar) that loads other user controls (children) into itself based on a property set in the HTML: <fss:Titlebar... -
Dynamically adding a user control to aspx page
I am using an aspx page called USProfile.aspx. It has a placeholder control. A user control called USData is added to placeholder control... -
Adding dynamically user control (ASCX) into asp.net page and handling OnClick event
Hi, I've been reading a lot's of Q&A on user controls but none seem to answer my question. Here it is. I need to add dynamically a user control,...



Reply With Quote

