About the "IAdvancedUserControl" ?

Apr 18, 2008 at 2:24 PM
Edited Apr 18, 2008 at 2:25 PM
Hello Jan.

I have recently download your source of "return of smartpart 1.3".
Very good job, thanks.

But I have some questions.

Would it be possible to give me implementation of
interface "IAdvancedUserControl".

In your sources files, this interface is empty :(

Secondly, I don't understand the utility of this interface ?
Because I can catch the Context and other property of my websites
with a simple call into the "OnLoad" method in my code behind :

SPWeb currentWeb = SPContext.Current.Web;
SPList list = currentWeb.Lists"MyList";

Thanks for your help.
Apr 24, 2008 at 7:26 AM
You can decompile the binary with Lutz Roeder's Reflector.
Apr 25, 2008 at 1:28 PM
Thank you for your response, but this is not my idea of copyright: - /

Unless I have the approval of yan ...

For my second question, nobody can explain the concept of this interface and the reason why I can take my context without this interface?

Thank you,
Apr 29, 2008 at 11:10 AM
Ok, this is not important... Thank you anyway...
May 14, 2008 at 12:09 AM
I dont know its so hard for someone to just post this. Here you go:
using System;
using Microsoft.SharePoint.WebPartPages;

namespace SmartPart
    public interface IAdvancedUserControl
        // Methods
        ToolPart[] GetCustomToolParts();
        void SetContext(SmartPart webpart);