Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 10th, 2006, 02:09 PM
Registered User
 
Join Date: May 2006
Location: , IN, USA.
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

Reply With Quote
  #2 (permalink)  
Old May 12th, 2006, 08:25 AM
Registered User
 
Join Date: May 2006
Location: , IN, USA.
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.

Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Web Parts control ??? nobitavn94 ASP.NET 2.0 Basics 0 December 16th, 2006 05:04 AM
Using Web Parts control ??? nobitavn94 ASP.NET 2.0 Basics 0 December 16th, 2006 05: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 12:29 AM
Web Parts and Beta Book mike72 ASP.NET 2.0 Basics 3 August 2nd, 2005 06:55 AM



All times are GMT -4. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.