CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/4/2004 12:03:26 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
cericoli
Asp.Net User
Simple Question Regarding Server Controls and Toolbox8/4/2004 12:03:26 AM

0/0

Hi,

I have designed several controls in a single assembly, but only want some of the classes to be available for addition to the Toolbox. When I select the DLL file through the Add/Remove Toolbox Items dialog, it automatically checks all classes/controls that are contained within the assembly. The problem is that some of the classes are base classes, and should not be presented within the Toolbox for direct use. I understand that I can uncheck any controls that I do not want to show in the Toolbox, but other users might not go through that process.

The base classes inherit from WebControl and DO NOT have a ToolboxData attribute present, so I am thinking that it is probably inheriting a ToolboxData attribute from the base WebControl class, but I am unsure how to override the attribute so that it does not default to inclusion within the Toolbox.

If anyone can help me, that would be great.

Ta

Chris
cericoli
Asp.Net User
Re: Simple Question Regarding Server Controls and Toolbox8/4/2004 2:02:05 AM

0/0

It's okay - I have solved this problem. Declaring the base classes using the FRIEND declaration means that the base classes do not appear in the Toolbox.

Chris
Andy Smith
Asp.Net User
Re: Simple Question Regarding Server Controls and Toolbox8/4/2004 2:02:06 AM

0/0

Add a ToolBoxItem( false ) attribute to any classes that shouldn't be placed on the toolbox.
cericoli
Asp.Net User
Re: Simple Question Regarding Server Controls and Toolbox8/4/2004 2:02:33 AM

0/0

Thanks Andy - that's great.

Cheers

CHris
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Developing Visual Studio .NET Macros and Add-Ins Authors: Jeff Cogswell, Pages: 456, Published: 2003
Automatic Control: World Congress 1990 : in the Service of Mankind : Proceedings of the 11th Triennial World Congress of the International Federation of Automatic Control, Tallinn, Estonia, USSR, 13-17 August 1990 Authors: International Federation of Automatic Control World Congress, Ü Jaaksoo, Vadim Ivanovich Utkin, International Federation of Automatic Control, Pages: 0, Published: 1991
Inside Macintosh: More Macintosh Toolbox Authors: Apple Computer, Inc, Apple Computer Inc., Inc Apple Computer, Pages: 928, Published: 1993
Handbook of Adhesives and Sealants Authors: Edward M. Petrie, Pages: 800, Published: 2007
Beginning SharePoint 2007 Administration: Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Authors: Göran Husman, Pages: 578, Published: 2007
Creative Fashion Design with Illustrator: With Abobe Illustrator Authors: Kevin Tallon, Pages: 176, Published: 2006
Smart Structures and Materials 2006: 27 February-2 March, 2006, San Diego, California, USA Authors: Yuji Matsuzaki, Society of Photo-optical Instrumentation Engineers, Intelligent Materials Forum (Mitō Kagaku Gijutsu Kyōkai), Society of photo-optical instrumentation engineers, Intelligent Materials Forum Mitō Kagaku Gijutsu Kyōkai, American Society of Mechanical Engineers, National Science Foundation (U.S.), American society of mechanical engineers, National Science Foundation U.S., Jet Propulsion Laboratory (U.S.), Jet Propulsion Laboratory U.S., Pages: 1, Published: 2006

Web:
Walkthrough: Developing and Using a Custom Server Control This walkthrough showed you how to develop a simple custom ASP.NET server control and use it in a page. You saw how to define a property and how to compile ...
Add user control to toolbox - .NET VB Add user control to toolbox. Question posted by: Philippe Meunier (Guest) on November 20th, 2005 01:42 AM. Hi, I am building a solution in VB. ...
When would you use a User Control over a Web Control? - Stack Overflow For simple controls that inherit from .Net controls, like a text box with validation .... Browse other questions tagged asp.net controls web-user-controls ...
CodeProject: ASP.NET Server Control - Design Time Support. Free ... Support for the Toolbox. Adding your component to the toolbar is simple. ..... I have a question regarding it. I have a property in my control as Columns ...
User Controls and Custom Server Controls, Part 4 | O'Reilly Media NET toolbox, when you use the control from the toolbox, ... mailing list (for any questions relating to building custom server controls in C#). ...
15 Seconds : Creating a Server Control for JavaScript Testing In this article we will make a small and simple server control that will allow us to .... NET, and add your newly created server control to the Toolbox: ...
ASP.NET.4GuysFromRolla.com: Easily Adding Functionality to ASP.NET ... NET server controls and needed to add some trivial extra functionality? .... You 'll also want to add the HoverCalendar control to the Toolbox by ...
Sample Chapter from Developing ASP.NET Server Controls and ... 5 Developing a Simple Custom Control. In Chapter 4, "User Controls: From Page to Control ... In addition, we'll describe how to debug a server control using ...
Build Web user controls in ASP.NET NET are armed with Web user controls, which make reuse simple, efficient, .... They should be a key component of any Web developer’s toolbox. 4 comment(s) ...
Whidbey PDC Questions (Answered) - ScottGu's Blog So here are the questions:. ASP.NET Server Controls: .... controls aren't so great for ISVs shipping reusable controls (no toolbox support, for example). ...




Search This Site:










design time and onpaint

fileupload control....

customizing the image for a drop down list......

sharing controls between two web sites

is there any free temporary hosting?

static ip address

server control with more than one children type

smart tag broke from version beta 1 to 2.

looking for fast performance in dnn and application hosting

hide web references from vs.net toolbox

composite control bound to data

hosting with unlimited bandwith?

adding a textbox in a table

http://datapacket.net/ the most horrible hosting in the world

communicating between two custom control's

setting the content of a control

unattended install w2k3 sp1 using ads - error 29006 ?

event accessor in vb.net

how to find control and render it again

good control building practice question?

control builds itself to quickly

snapshot of webpage control - anybody has one?

5 domains on one hosting account? (shared disk space & bandwidth?)

adding an onclick event in a .vb class

minimal code to create a hierarchicaldataboundcontrol

date drop down composite control problem

hire our developers for $1600/month

page_validators undefined

column 'invariantname' is constrained to be unique

help! controls problem

  Privacy | Contact Us
All Times Are GMT