Ask a Question related to ASP.NET General, Design and Development.
-
Lloyd Dupont #1
Re: at control at load time
Thanks Steve, that's perfectly answer to my question :-)
ON the othe hand I'm experimentating Templated custom user controls and
having something going to work.
Thanks, :-)
Lloyd
PS: such a long web developper exeperience such as yours....
"Steve C. Orr, MCSD" <Steve@Orr.net> a écrit dans le message de
news:e64yvUwUDHA.2168@TK2MSFTNGP09.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:
>postback,>
> You can add it to a particular position by adding it to a pre-placed
> Placeholder control, or to a Panel.
>
> To ensure state will work for it, create it the same way upon eachto> being careful not to overwrite any user input.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Lloyd Dupont" <lloyd@RemoveIfNotSpamming.galador.net> wrote in message
> news:ez4HgPwUDHA.1832@TK2MSFTNGP09.phx.gbl...> init> > I have a page in which I want to insert dynamically, at load time ? (or> > ?) a custom web control (.ascx)
> >
> > how to simply add it with code ? (a .ascx)
> > how to add it in a particular position ? (I want to add it dynamically> a>> > .aspx)
> > and how to ensure it could have working state variable ?
> >
> >
>
Lloyd Dupont Guest
-
How to force a load of one control from another control on another form?
I have 2 forms, frm1, frm2. They each have a user control on them, uc1, uc2. When a drop down list on frm1.uc1 is changed, I want frm2.uc2 to be... -
Child control renders at desing-time as if it is in run-time...
Hi, I have a problem with design-time. The problem is rather hard to describe in a few sentences ... so I hope someone will reply asking for more... -
Page Load fired 3 times Web user control is embedded in a custom control
Hi, I have built a custom control that build a table with 3 cells in it. The custom control is designed to add all child controls to cell#2,... -
Problem with Date & Time Picker control in a Tab Control form
I'm using the DTPicker (Date and Time Picker) ActiveX control within an ACC2000 Tab Control subform contained within a main form. As I scroll... -
Using Table control in a custom composite control. Control does not render properly in design time.
All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control...



Reply With Quote

