Author: still_the_same | Posted on: 6/27/2007 10:59:34 AM | Views : 430

I created a static connected webpart.
INTERFACE:
public interface IMessage
{
    string Message { get;}
}

USERCONTROL PROVIDER:
public partial class Control1 : System.Web.UI.UserControl, IMessage,
IWebPart
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    [ConnectionProvider("Message","IMessageProvider")]
    public IMessage GetMessage()
    {
        return this;
    }
    public string Message
    {
        get
        {
            return TextBox1.Text;
        }
    }
    #region I ...

Go to the complete details ...