Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / July 2004

Tip: Looking for answers? Try searching our database.

Having trouble with adding HTMLControls to VS.NET control toolbar.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Varn - 26 Jul 2004 14:26 GMT
I have an assembly that contains an ASP.NET control derived from
System.Web.UI.HtmlControls.HtmlGenericControl.  I am trying to add this
control to my Controls Toolbox in VS.NET.  When I select the assembly DLL
containing the control, it is not listed as a control to select.  If I
derive the control from System.Web.UI.WebControls.WebControl, then it shows
up.

Is there some reason why HtmlControls cannot be added to the toolbox?

Signature

-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Mikhail Arkhipov (Microsoft) - 31 Jul 2004 04:47 GMT
WebControl specifies certain design-time attributes, including data for the
VS toolbox. Apparently HtmlGenericControl does not. You have to specify them
manually in order to make your control interact with VS toolbox.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html
/servercontrols.asp

This article contains sample code which specifies toolbox data.

[DefaultProperty("DataTable"),
 ToolboxData("<{0}:DataDropDownList
  runat=server></{0}:DataDropDownList>")]

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights.

On 7/26/04 6:26, in article eGietRxcEHA.384@TK2MSFTNGP10.phx.gbl, "Ken Varn"
<nospam> wrote:

> I have an assembly that contains an ASP.NET control derived from
> System.Web.UI.HtmlControls.HtmlGenericControl.  I am trying to add this
[quoted text clipped - 4 lines]
>
> Is there some reason why HtmlControls cannot be added to the toolbox?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.