CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/25/2003 3:11:24 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ste810
Asp.Net User
Composite Control base question8/25/2003 3:11:24 AM

0/0

Should a composite control always inherit from either Control, WebControl, or MobileControl? In what circumstances should a composite control inherit from an asp server control, such as TextBox or DataGrid?

If I want a control to extend the functionalities provided by some asp server controls, should I use a composite control to inherit it as base, or should I use a custom control to inherit it as base? What is good and bad?

thanks in advance...
russnem
Asp.Net User
Re: Composite Control base question8/25/2003 1:41:37 PM

0/0

I don't think there is any "good and bad". You subclass the class that will offer you the most functionality before customization. The logic here would be "why reinvent the wheel?".
Andy Smith
Asp.Net User
Re: Composite Control base question8/25/2003 4:55:46 PM

0/0

I disagree.
It's hard for me to think of a situation where you want to take a textbox and make it an INamingContainer. The better pattern here is encapsulation, not inheritance. If you are making a composite control, you want to derive from Control or WebControl. Most likely WebControl, as you are usually making a complex UI widget, and you'll want to either implement the UI stuff directly, or pass the properties along to your contained controls.
ste810
Asp.Net User
Re: Composite Control base question8/25/2003 9:26:36 PM

0/0

Thanks for your response, russnem and Andy.

I agree doing a composite control inheriting from a textbox is hard to imagine, yet let's take an example for datagrid (or other more complicated controls).

Say I want to add asp server control supported functionality to a new kind of datagird, for example, add many hyperlinks that causes postback around but not within a datagrid.

which way is better: i create a composite control that subclass datagrid and INamingContainer, then override createchildcontrols() and then create and the linkbuttons i want to add in it, and then in render() do linkbuttonN.rendercontrol(writer), then catch the linkbuttons' click events in RaiseBubbleEvent()?

versus, create a custom control that subclass datagrid and IPostBackEventHandler, and then in render(), i recreate the functionality of a linkbutton (myhyperlinks.attributes.add(Page.RegisterReferenceHyperLink(...)) and then in RaisePostBackEvent() i use a long if-else to distinguish which linkbutton causes the postback from eventArgument and then raise the appropriate event?

appreciate any comments...
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Proceedings: 1988 IEEE International Conference on Robotics and Automation, April 24-29, 1988, Franklin Plaza Hotel, Philadelphia, Pennsylvania Authors: IEEE Robotics and Automation Council, Pages: 1876, Published: 1988
Information Security Management Handbook: Vol. 3 Authors: Harold F. Tipton, F. Tipton, Micki Krause, Pages: 686, Published: 2006
Advanced Database Systems Authors: Nabil R. Adam, Bharat K. Bhargava, Pages: 451, Published: 1993
System Identification and Adaptive Control Authors: Cornelius T Leondes, Pages: 361, Published: 1988
Composite Materials: Testing and Design (tenth Volume) Authors: Glenn C. Grimes, Pages: 470, Published: 1992
ASM Handbook: Composites Authors: Daniel B. Miracle, ASM International Handbook Committee, Steven L. Donaldson, Pages: 1201, Published: 2001
Proceedings of the IEEE 1994 National Aerospace and Electronics Conference, NAECON 1994: Held at the Dayton Convention Center, May 23-27, 1994 Authors: Ohio IEEE National Aerospace and Electronics Conference 46th Dayton, Institute of Electrical and Electronics Engineers, Institute of Electrical and Electronics Engineers Dayton Section, IEEE Aerospace and Electronic Systems Society, IEEE Aerospace and Electronic Systems Society, Dayton Section, Pages: 1346, Published: 1994
Pascal Plus Data Structures, Algorithms, and Advanced Programming Authors: Nell B. Dale, Susan C. Lilly, Pages: 878, Published: 1995
Advanced Technology for Design and Fabrication of Composite Materials and Structures: Applications to the Automotive, Marine, Aerospace and Construction Industry Authors: G. C. Sih, A. Carpinteri, G. Surace, Concorzio per la recerca e l'educazione permanente (Italy), Pages: 460, Published: 1995

Web:
Composite Control base question - ASP.NET Forums Composite Control base question. Last post 08-25-2003 5:34 PM by sTe810. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
CompositeControl Base Class in ASP.NET 2.0 (a new alternative to ... Ian raises the interesting question of whether this is now a better option to .... How should be design a base class for a very complex composite control in ...
CodeProject: An ASP.NET Composite Control for US and UK dates ... Thus was born an idea for a date control based solely on list boxes. I chose to create a Composite Control over a User Control so I could deploy the control ...
p2p.wrox.com Forums - Composite Control Property Exposure Invalid... If you derive your custom control from the CompositeControl base class, you don' t have to ... The answer to this question lies in the ASP. ...
Welcome to IEEE Xplore 2.0: ABS Composite Control Based on Optimal ... Frequently Asked Questions (FAQs) ... ABS Composite Control Based on Optimal Slip Ratio ... This paper appears in: American Control Conference, 2007. ...
Walkthrough: Authoring a Composite Control with Visual C# Your composite control can now be used as a base upon which other controls can be built. The process of deriving a class from a base class is called ...
Composite control with dynamic composite controls Composite control with dynamic composite controls. Hello, I'm building a web application that will build a dynamic form based upon questions ...
LNCS 4491 - Reheat Steam Temperature Composite Control System ... 4 Reheat Steam Temperature Composite Control Based on CMAC. and Immune PID Controller. 4.1 Model of Reheat Steam Temperature System ...
Water jet mechanism with composite control light-emitting modules ... The water jet mechanism with composite control light-emitting modules of claim 1 , wherein said base is a material selected from a group consisting of ...
RE: Composite control, postback and change control tree Regarding on the Createing composite control which has DropDownlist and textBox list question you mentioned, based on my experience, we can put the ...

Videos:
Aero-TV Checks Out The Jet A-Powered Diesel Skyhawk!!! Cessna, Thielert Partner On 172S Turbo Diesel Option Last fall, we asked ANN readers to, "Just imagine how cool will it be for a student pilot... on...
500 Ton 70" x 60" Down-acting Hydraulic Press This press was totally refurbished by Icon Industries for a customer molding military related composite components. A new hydraulic power unit and ne...
Russian Knights 2 The Russian Knights (Russian: Русские Витязи) are an aerobatic demonstration team of the Russian Air Force. Originally formed on April 5, 1991 at the...
Japan Air Force http://www.aviationlive.org Online Aviation Pics,Videos and Forum The Japan Air Self-Defense Force (航空自衛隊, Kōkū Jieitai?), or JASDF, is the aviation ...
Kombat T-98 Promo Video II. Presentation of guardian car made in Russia. http://www.armoringgroup.com/ COMBAT T98 Personal Armoring Vehicle 2005 SPECIFICATIONS & PERFORMANC...
Russian Knights http://www.aviationlive.org Online Aviation Pics,Videos and Forum The Russian Knights (Russian: Русские Витязи) are an aerobatic demonstration team o...
Cisco Digital Signage Video Data Sheet Cisco Digital Signage provides scalable, centralized management and publishing of high-quality content to networked, on-premise digital signage displ...
WORLD'S SMALLEST FIRST 4CH RC Helicopter !!! http://www.micro-flight.com Palm Size Helicopter 5" Rotor World's Smallest Helicopter Full 4 CH control. Palm Size Heli (Palmsize heli) A true 4 cha...
Smerch 9K58 Multiple Launch Rocket System, Russia The 9K58 Smerch 300mm Multiple Launch Rocket System (MLRS) is designed to defeat soft and hard skin targets, artillery and missile systems. It is pro...
Objects: they just work Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Bob Binder




Search This Site:










extend radiobuttonlist to give listitem extra properties?

forcing postback from js and catching it in c#

custom list control

two web applications/web configs ?

drop down control that allows editing

how to put server control on the toolbox?

mylistview control...

custom servercontrol

looking for a cheap host for a server i can play with i.e. install longhorn, etc

ensurechildcontrols and createchildcontrols

hosting that supports web matrix

hosting website

why is validator summary not picking up error message from vaildators within composite controls???

problem with <button> tag and postback - please help :(

please tell me i don't have to use a server control!

user control...

need good asp .net web hosting provider!

hosted database with merge replication over https

vs.net custom designer

custom server control that loads usercontrols - problem

get property of top level class

preventing inherited properties

emitting & in src tag

custom control loadpostdata

custom control drag and drop problem

microsoft visual web developer hosting and themes !?!

control name placement

x86 64 bit licensing

sorting values in hashtable or sortedlist

array bounds cannot appear in type specifiers.

  Privacy | Contact Us
All Times Are GMT