Add a SmartPart in an aspx file

Aug 16, 2007 at 3:53 PM
Hi,

I would like to add a smartpart inside an aspx page and load a user control, but I don't find how I can load the user control. For the moment I wrote that :

<%@ Register TagPrefix="SmartPart" Namespace="SmartPart" Assembly="ReturnOfSmartPart, Version=1.2.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" %>

<SmartPart:AJAXSmartPart runat="server" FrameType="None" ID="Main" >

But how can I load a user control inside this smartpart ? I examined each properties but there is no usercontrol field. If someone can help me, it will be great :). Thank you for helping me.

Cheers