How to pass data from one webpart to another webpart in sharepoint?

3 posts, 0 answers
  1. Bijayani
    Bijayani avatar
    1 posts
    Member since:
    Jun 2010

    Posted 25 Jun 2010 Link to this post

    In certain situation we need to pass data from webpart to another webpart present in the same site. To implement the connection functionality between WebParts, we should create an Interface .This interface will be implemented by both the provider and consumer classes.
     
    Then we will use the ConnectionProvider and ConnectionConsumer attribute to make the connection between the two webpart.

    EXAMPLE:
    1.  Interface :  
      
        public interface Test
        {
            string Name { get; set; }
        }

    Thanks,
    Bijayani

  2. Diego
    Diego avatar
    14 posts
    Member since:
    Jun 2010

    Posted 25 Jun 2010 Link to this post

    Here you go:
    http://www.mindfiresolutions.com/How-to-pass-data-from-one-webpart-to-another-webpart-in-sharepoint--798.php

  3. yipi
    yipi avatar
    3 posts
    Member since:
    Jul 2010

    Posted 07 Aug 2010 Link to this post

    That's cool :) Is there a way to do the same thing with Ajax?
Back to Top