Wrox Programmer Forums
|
BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X
This is the forum to discuss the Wrox book Professional Web Parts and Custom Controls with ASP.NET 2.0 by Peter Vogel; ISBN: 9780764578601
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2006, 02:09 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custom Web parts

How do you add a custom web part to your aspx page? EX: If I use the example from chapter 12 and change it to inherit from:
    Inherits System.Web.UI.WebControls.WebControl
then do a build I can add from the toolbar. However if I change it to:
    Inherits System.Web.UI.WebControls.WebParts.WebPart
And then do a build it does not show up in my toolbar.

An example in VB would be appreciated!

Thank you

 
Old May 12th, 2006, 08:25 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Figured out my own question. If you want to add a custom webpart to your form you would use syntax similiar to:
<%@ Register Assembly="BookInfo" Namespace="BookInfo" TagPrefix="cc1" %>

You do not get the option to add from the toolbar when using custom webparts.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Web Parts control ??? nobitavn94 ASP.NET 2.0 Basics 0 December 16th, 2006 06:04 AM
Using Web Parts control ??? nobitavn94 ASP.NET 2.0 Basics 0 December 16th, 2006 06:03 AM
Custom Web Parts Layout Eric_Anderson ASP.NET 2.0 Professional 0 May 31st, 2006 10:21 AM
Web Parts Display Mode mjm917 ASP.NET 2.0 Basics 0 February 28th, 2006 01:29 AM
Web Parts and Beta Book mike72 ASP.NET 2.0 Basics 3 August 2nd, 2005 06:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.