Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Need to pass values between custon webparts

  Asked By: Tarang Upadhya         Date: Jan 28, 2009      Category: Sharepoint      Views: 1552
 

I need to pass values between custom webparts.Just trying this for a
case where a user clicks the button on webpart and the value entered
in the textbox is shown in the text box of the other web part.
If you have sample code or something... nothing like .

Tagged:              

 

2 Answers Found

 
Answer #1       Answered By: Jeremey Avery          Answered On: Jan 28, 2009       

You could do this with two data view web  parts, using SharePoint
Designer. No-code. Or, you could use a form web part  (for input) wired
to a data view Web part. Either way, no-code and native solutions.

 
Answer #2       Answered By: Bijayani Baijayanti          Answered On: Jun 02, 2010       

Hi,

I am sharing a tips with you. The tips is regarding "How to pass  data from one webpart  to another webpart in sharepoint?"

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; }
}

Hope you find this tips useful and of assistance. For more details, please visit this page: www.mindfiresolutions.com/...n-sharepoint--798.php

Thanks,
Bijayani

 
Didn't find what you were looking for? Find more on Need to pass values between custon webparts Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].