|
 |
aspx thread: custom controls like ssi?
Message #1 by "Chadrick" <chadm@d...> on Thu, 11 Jul 2002 15:13:21 -0400
|
|
Question for you all out there:
Can you dynamically place custom controls on a page. I know you can't do
it with SSI (server side include) and was wondering if Microsoft fixed
that problem with these new custom controls?
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Thu, 11 Jul 2002 15:22:41 -0400
|
|
Chadwick,
Do you mean Page.LoadControl(string)? If so, then yes. If you mean
add a control at runtime, like
Container.Controls.Add(new ImageButton());
then yes, but good luck trying to link them up with events. I haven't found
a reliable way to do it yet.
- Chuck
-----Original Message-----
From: Chadrick [mailto:chadm@d...]
Sent: Thursday, July 11, 2002 3:13 PM
To: ASP+
Subject: [aspx] custom controls like ssi?
Question for you all out there:
Can you dynamically place custom controls on a page. I know you can't do
it with SSI (server side include) and was wondering if Microsoft fixed
that problem with these new custom controls?
Message #3 by "Chadrick" <chadm@d...> on Thu, 11 Jul 2002 15:30:54 -0400
|
|
should have explained better.
I have my .ascx pages and register them as custom tags to use for
different content. I use to use SSI to import files in but now if they
are .ascx files can I dynamically call one of them when I run the page.
I realize I might have to register them all (which isn't a good
prospect) in order to pick one to display.
Hope this clears it up.?
Chadrick Mahaffey
-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...]
Sent: Thursday, July 11, 2002 3:23 PM
To: ASP+
Subject: [aspx] RE: custom controls like ssi?
Chadwick,
Do you mean Page.LoadControl(string)? If so, then yes. If you
mean
add a control at runtime, like
Container.Controls.Add(new ImageButton());
then yes, but good luck trying to link them up with events. I haven't
found
a reliable way to do it yet.
- Chuck
-----Original Message-----
From: Chadrick [mailto:chadm@d...]
Sent: Thursday, July 11, 2002 3:13 PM
To: ASP+
Subject: [aspx] custom controls like ssi?
Question for you all out there:
Can you dynamically place custom controls on a page. I know you can't do
it with SSI (server side include) and was wondering if Microsoft fixed
that problem with these new custom controls?
Message #4 by Feduke Cntr Charles R <FedukeCR@m...> on Fri, 12 Jul 2002 08:54:51 -0400
|
|
Not sure if you have to <% @Register %> them, but you can use
Page.LoadControl("path\yourControl.ascx") to load controls dynamically.
- Chuck
-----Original Message-----
From: Chadrick [mailto:chadm@d...]
Sent: Thursday, July 11, 2002 3:31 PM
To: ASP+
Subject: [aspx] RE: custom controls like ssi?
should have explained better.
I have my .ascx pages and register them as custom tags to use for
different content. I use to use SSI to import files in but now if they
are .ascx files can I dynamically call one of them when I run the page.
I realize I might have to register them all (which isn't a good
prospect) in order to pick one to display.
Hope this clears it up.?
Chadrick Mahaffey
-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...]
Sent: Thursday, July 11, 2002 3:23 PM
To: ASP+
Subject: [aspx] RE: custom controls like ssi?
Chadwick,
Do you mean Page.LoadControl(string)? If so, then yes. If you
mean
add a control at runtime, like
Container.Controls.Add(new ImageButton());
then yes, but good luck trying to link them up with events. I haven't
found
a reliable way to do it yet.
- Chuck
-----Original Message-----
From: Chadrick [mailto:chadm@d...]
Sent: Thursday, July 11, 2002 3:13 PM
To: ASP+
Subject: [aspx] custom controls like ssi?
Question for you all out there:
Can you dynamically place custom controls on a page. I know you can't do
it with SSI (server side include) and was wondering if Microsoft fixed
that problem with these new custom controls?
|
|
 |