About the "IAdvancedUserControl" ?

Apr 18, 2008 at 1:24 PM
Edited Apr 18, 2008 at 1: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 6:26 AM
You can decompile the binary with Lutz Roeder's Reflector.
Apr 25, 2008 at 12: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 10:10 AM
Ok, this is not important... Thank you anyway...
May 13, 2008 at 11:09 PM
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);