469,657 Members | 1,841 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,657 developers. It's quick & easy.

"ASP.NET 2005 custon server control" in "ASP.NET 2003 application"

Hello,

I have two questions:

1.) Could I create a custom server control in 2005 in order to leverage
the CompositeControl base class and then use that control in 2003?
(fingers crossed but guessing aboslutely not)

2.) How good does ASP.NET 2005 handle a custom composite control inside
of a custom composite control ?

For example:

Cntrl_A inherits from CompositeControl and does all sorts of neat stuff

Cntrl_B also inherits from CompositeControl and has two instances of
Cntrl_A (as per below)

Protected Overrides Sub CreateChildControls()
Controls.Clear()

cntrl_A1= New Cntrl_A()
cntrl_A1.ID = "FirstControl"
cntrl_A2= New Cntrl_A()
cntrl_A2.ID = "SecondControl"

Me.Controls.Add(cntrl_A1)
Me.Controls.Add(cntrl_A2.)
End Sub

Thinking MicroSoSoft may have troubles with postbacks and validations
if controls get nested too deep. If not then I might need to upgrade.

Thanx in advance.

Aug 27 '06 #1
1 1145

"Electric Co." <jm*****@ucalgary.cawrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hello,

I have two questions:

1.) Could I create a custom server control in 2005 in order to leverage
the CompositeControl base class and then use that control in 2003?
(fingers crossed but guessing aboslutely not)
You are a great guesser.
2.) How good does ASP.NET 2005 handle a custom composite control inside
of a custom composite control ?

For example:

Cntrl_A inherits from CompositeControl and does all sorts of neat stuff

Cntrl_B also inherits from CompositeControl and has two instances of
Cntrl_A (as per below)

Protected Overrides Sub CreateChildControls()
Controls.Clear()

cntrl_A1= New Cntrl_A()
cntrl_A1.ID = "FirstControl"
cntrl_A2= New Cntrl_A()
cntrl_A2.ID = "SecondControl"

Me.Controls.Add(cntrl_A1)
Me.Controls.Add(cntrl_A2.)
End Sub

Thinking MicroSoSoft may have troubles with postbacks and validations
if controls get nested too deep. If not then I might need to upgrade.
It should not be a problem. You have to nest pretty deep before you get
yourself into serious trouble. Poorly designed controls can certainly cause
problems, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
Oct 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Schrodiodo | last post: by
reply views Thread by chan fookmun via .NET 247 | last post: by
reply views Thread by victor | last post: by
4 posts views Thread by SpaceMarine | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.