Results 1 to 6 of 6

Thread: WebPart Connection in ASP.net

  1. #1
    Join Date
    Nov 2009
    Posts
    877

    WebPart Connection in ASP.net

    Hello, I am new in Programming and recently I have read one of the article on the WebPart Connection in Asp.net. I am not able to get the concept of it exactly. So, if you are having knowledge about it, then please provide me details about it, so I can able to understand it. So, if you know it, then please reply me. Thank you in advance.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: WebPart Connection in ASP.net

    If you check the elements of the Webpart then you will come to know that, the following are Main Elements of WebPart Connection :
    1. Connection Interface
    2. Connection types
      • Provider
      • Consumer
    3. Connection
    4. Connection Points :-
      • ProviderConnectionPoint
      • ConsumerConnectionPoint

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: WebPart Connection in ASP.net

    If you want to Create Web Part connections then follow the steps below:
    • First you need to fix the data which you require on the Web Part Page
    • Now you need to add all of that Web Parts to the Web Part Page
    • Now you need to connect the Web Parts for achieving the result.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: WebPart Connection in ASP.net

    WebPart Connection in C#.net done as below:
    Code:
    public interface Testing
    {
    string MSG 
    { 
    get;
    }
    }
    WebPart Connection in vb.net done as below:
    Code:
    Public Interface Testing
    ReadOnly Property MSG() As String
    End Interface

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    Re: WebPart Connection in ASP.net

    If you want make connection between the webpart then you must need to follow the steps below:
    • First thing you must need to perfor is to define the interface which will help you to connect the two webparts.
    • Then it is necessary to make a Provider.
    • Then you need to create that connection and make connection.
    • This interface which you will create must be in PreRender.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,852

    Re: WebPart Connection in ASP.net

    If you want to create a user control in c# then you must need to make use of the following code:

    Code:
    <%@ Control Language="C#" ClassName="Provider" %>
    <%@ Implements Interface="IMessage" %>
    <script runat="server">
    [ConnectionProvider("MSG")]
    public IMSG GetMSG() 
    {
    return this;
    }   
    public string MSG 
    {
    get 
    {
    return MSGtextbox.Text;
    }
    }
    </script>
    <asp:TextBox Runat="server" ID="MSGtextbox" />
    <asp:Button Runat="server" ID="btn" Text="Change the Text" />

Similar Threads

  1. Replies: 9
    Last Post: 14-05-2012, 06:05 PM
  2. Tips to optimize your Network Connection and Wireless Connection
    By Computer_Freak in forum Tips & Tweaks
    Replies: 3
    Last Post: 18-01-2012, 08:30 PM
  3. Replies: 1
    Last Post: 06-07-2011, 07:43 AM
  4. Create VPN connection results in Dial-up connection
    By Blerim in forum Windows Vista Network
    Replies: 3
    Last Post: 01-01-2010, 10:02 PM
  5. Replies: 5
    Last Post: 07-03-2009, 12:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,872,842.73595 seconds with 16 queries