Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Facade for 3rd party controls, CompositeControl?

Reply
Thread Tools

Facade for 3rd party controls, CompositeControl?

 
 
Mark
Guest
Posts: n/a
 
      08-01-2008
Hi...

Kind of a typical request from product management - they want to be able to
swap in different 3rd party controls depending on their whim and the day. In
this case, they want to support FreeTextBox and Cute Editor interchangably.

I've been trying to put together a container control derived from
CompositeControl to put a facade around the interaction. Depending on the
configuration, I want to put a FreeTextBox2 or a cute editor control into the
ControlCollection.

I overrode CreateChildControls() to set things up. That seems to get the
controls created and initialized, but not rendered.

I overrode my CompositeControl.Render() method to render the child, but
FreeTextBox2 (my first test case) has some member variables that are only
initialized in FreeTextBox2.OnPreRender(), which apparently hasn't been
called.

I tried to override my CompositeControl.OnPreRender() but since
OnPreRender() is protected, I can't call my child FreeTextBox2.OnPreRender().

Am I just barking up the wrong tree here? What is the best way to make a
shell container just to hold another container of choice? How do you get the
controls in the collection hooked up to get all of the various calls in the
stages of execution?

Thanks
Mark

 
Reply With Quote
 
 
 
 
Steven Cheng [MSFT]
Guest
Posts: n/a
 
      08-04-2008
Hi Mark,

Regarding on this issue, I've also seen your another thread posted in the
microsoft.public.dotnet.framework.aspnet newsgroup.

I've also added some inputs there. Welcome to continue followup there.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
http://www.velocityreviews.com/forums/(E-Mail Removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>X-WBNR-Posting-Host: 207.46.192.207
>From: =?Utf-8?B?TWFyaw==?= <(E-Mail Removed)>
>Subject: Facade for 3rd party controls, CompositeControl?
>Date: Fri, 1 Aug 2008 11:15:01 -0700


>
>Hi...
>
>Kind of a typical request from product management - they want to be able

to
>swap in different 3rd party controls depending on their whim and the day.

In
>this case, they want to support FreeTextBox and Cute Editor interchangably.
>
>I've been trying to put together a container control derived from
>CompositeControl to put a facade around the interaction. Depending on the
>configuration, I want to put a FreeTextBox2 or a cute editor control into

the
>ControlCollection.
>
>I overrode CreateChildControls() to set things up. That seems to get the
>controls created and initialized, but not rendered.
>
>I overrode my CompositeControl.Render() method to render the child, but
>FreeTextBox2 (my first test case) has some member variables that are only
>initialized in FreeTextBox2.OnPreRender(), which apparently hasn't been
>called.
>
>I tried to override my CompositeControl.OnPreRender() but since
>OnPreRender() is protected, I can't call my child

FreeTextBox2.OnPreRender().
>
>Am I just barking up the wrong tree here? What is the best way to make a
>shell container just to hold another container of choice? How do you get

the
>controls in the collection hooked up to get all of the various calls in

the
>stages of execution?
>
>Thanks
>Mark
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Wonder why old 4/3rd lenses are slow on m4/3rd bodies? RichA Digital Photography 8 03-02-2012 11:40 PM
Facade for 3rd party controls, CompositeControl Mark ASP .Net 6 08-07-2008 08:42 AM
3rd Party app stopping Zero config service on startup =?Utf-8?B?QW5ndXMgUm9va2U=?= Wireless Networking 1 08-20-2005 06:55 AM
Spybot's advice for blocking 3rd party cookies with Firefox History Fan Firefox 2 08-11-2005 06:23 AM
Re: Request: A+ Complete 3rd edition (PDF) [1/1] - A+ Complete 3rd edition.txt (1/1) Spammy Sammy A+ Certification 0 03-04-2005 12:55 PM



Advertisments