Ask a Question related to ASP.NET General, Design and Development.
-
Steve C. Orr, MCSD #1
Re: Can a user control be requested dynamically?
You can load a control dynamically at runtime using the LoadControl method.
Here's more info:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuitemplatecontrolclassloadcontroltop ic.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"charles" <charles@synthigence.com> wrote in message
news:%237Zzco9SDHA.2316@tk2msftngp13.phx.gbl...one's> Anybody know if it's possible request an ascx control dynaically?
> I would like to be able to have several ascx files and determine which> exist on the website and display them at runtime.
>
> It seems that the @register directive is not dynamic (and the include
> directive as well).
>
> Any ideas?
>
> thanks
> charles
>
>
Steve C. Orr, MCSD Guest
-
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... -
How do I dynamically add a user control to a web page?
I have a user control which I created that does not work when I add it dynamically to a web page. My code looks like this. For x = 0 to max... -
Dynamically loading user control
Hi I am adding a user control to an aspx page dynamically. This user control has a link button. Hence I have to enclose it in a form tag with... -
Hiding and Showing User Control Dynamically
Hey guys, I created a little user control that is basically a table with a login and password field. I have this control on all my pages, but I... -
need help with dynamically created user control
i have a dynamically created user control which contains a non-dynamically created ASP.Net button. When the button is clicked, the event is not... -
charles #2
Re: Can a user control be requested dynamically?
Excellent! That's exactly what I needed.
thanks
charles
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:en$ip99SDHA.1552@TK2MSFTNGP10.phx.gbl...method.> You can load a control dynamically at runtime using the LoadControl[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuitemplatecontrolclassloadcontroltop ic.asp[/url]> Here's more info:
>>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "charles" <charles@synthigence.com> wrote in message
> news:%237Zzco9SDHA.2316@tk2msftngp13.phx.gbl...> one's> > Anybody know if it's possible request an ascx control dynaically?
> > I would like to be able to have several ascx files and determine which>> > exist on the website and display them at runtime.
> >
> > It seems that the @register directive is not dynamic (and the include
> > directive as well).
> >
> > Any ideas?
> >
> > thanks
> > charles
> >
> >
>
charles Guest



Reply With Quote

