RE: Problem dynamically loading a user control....

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: srini (srini_at_discussions.microsoft.com)
Date: 09/16/04


Date: Wed, 15 Sep 2004 23:13:04 -0700

hi Jose,
One way is to add a placeholder to your page at design time and later add
the controls to this placeholder instead of adding the controls to the page.
instead of page.controls.add use placeholder1.controls.add.
hope that helps
the best
srini

"José Joye" wrote:

> Hello,
>



Relevant Pages

  • Re: Help Needed -- Datalist linkbutton
    ... What I did is just added a new placeholder for each linkbutton on ... placeholder and load the one corresponding to the current one. ... Since I am using a placeholder to load the user controls on click ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Zuweisen eines Controls aus page.controls
    ... > Ich habe ein Placeholder welches mehrere Controls enthält. ... > Dieses Placeholder weise ich der Seite zu: ... > 'objControl = Placeholder mit meinen Controls die in der Seite dargestellt ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Control X of type RadioButton must be placed inside a form tag with runat=server.
    ... I have discovered that I can add a placeholder in design ... >the Form controls. ... >> Dim Place1 As New PlaceHolder ... >> Dim Radio As New RadioButton ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help Needed -- Datalist linkbutton
    ... Since I am using a placeholder to load the user controls on click ... > private void Page_Load ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mangled id attributes
    ... For datagrids, I've found that it is best to refer to the position of the ... htmlinputhidden in a cell you can access the placeholder at ItemDataBound ... > I've noticed that templated controls ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)