Home > sharepoint > Call user control from webpart

Call user control from webpart

Most SharePoint developers know about the SmartPart. And most SharePoint developers know that it has a few limitations. So, this blog, written by Eli Robillard, is great to list out the few limitations in the SmartPart. This blog also does a good job of showing you how you can build up your own wepart, point it to a UserControl to load, and have the user control show in the webpart. Very nice thing to know! http://weblogs.asp.net/erobillard/archive/2008/03/04/what-to-know-about-smartpart-and-loadcontrol.aspx

Categories: sharepoint
  1. Pritesh
    September 28, 2009 at 1:03 pm

    How to add custom control into dataformview Webpart of dispform.aspx using Sharepoint Designer?

    I have created custom web control and tried to include that control into dataformview web part.
    I have installed successfully and working fine If I will kept in outside of dataformview webpart.
    I register with @Register directive at the top of the page. When I try to keep in the body of the DataformView Webpart xslt gives me error like “Error: Reference to undeclared namespace prefix: ‘UCD'” otherwise it is working fine.

    Can you give me your comments on this problem?


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: