PC Review


Reply
Thread Tools Rate Thread

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

 
 
Electric Co.
Guest
Posts: n/a
 
      27th Aug 2006
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.

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      10th Oct 2006

"Electric Co." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
*************************************************


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to return a proper "Successful" or "Failed" notice to SQL Server Jobs from a VB.NET application BostonNole Microsoft VB .NET 1 6th Nov 2006 05:29 PM
Re: XL2000 "Custon Views" "Column width" Problem Dave Peterson Microsoft Excel Discussion 0 9th Aug 2005 02:30 AM
Hide "Record" "Closed Caption" "Parental Control" indicators while in full screen Jordan ATI Video Cards 0 18th Feb 2005 05:21 PM
GPO only applies to "security" and "application management" and not "registry" and "efs" Jacques Koorts Microsoft Windows 2000 Group Policy 0 25th Jun 2004 01:49 PM
<input id="iPhoto" type="file" size="20" runat="server"> Mark Sandfox Microsoft ASP .NET 1 11th May 2004 02:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 AM.