Adding a UserControl to a webpart

J

joer.banno

I'm trying to add an existing UserControl to a webpartzone.
I found the usercontrol on:
http://www.codeproject.com/KB/user-controls/rssaggregator.aspx
I'm using the dll, adding it to the bin directory adding a reference
to it and registering it in web.config like this:
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"
tagPrefix="ajaxToolkit"/>
<add namespace="RSSAggregator" assembly="RSSAggregator"
tagPrefix="RssAggregator"/>
</controls>
</pages>

No I can declare the usercontrol within a webpartzone:
<ZoneTemplate>
<RssAggregator:RssAggregator ID="Rss1" runat="server" />
</ZoneTemplate>

But when I run the website, I get this error:
Server Error:
Additional information: The "path" argument cannot be empty if the
"type" argument is UserControl.

So what am I missing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top