Solved

Connecting web parts on different pages?

Posted on 2008-10-23
1
399 Views
Last Modified: 2013-11-05
hi  i have been asked to do the following, but am confused:

1. Have webpart1 on page1.aspx    
2. webpart1 has a textbox which you enter a id number into.
3. When you press the submit button the contents of the textbox are sent to Webpart2 on Page2.aspx
4. WebPart2 then goes off and gets some data using the id.  

I know i could use session - but is it possible formally connect the two webparts - across different pages?  In a similar way to how they are linked when on the same page? i.e
<StaticConnections> <asp:WebPartConnection or is it possible programatically?


thanks

sean



0
Comment
Question by:MrKevorkian
1 Comment
 
LVL 42

Accepted Solution

by:
zephyr_hex (Megan) earned 200 total points
ID: 22788683
yes.  this is possible... i'm assuming this is either wss 3.0 or moss 2007 (if it's an earlier version, the process is a bit more complicated and different)
http://msdn.microsoft.com/en-us/library/ms415560.aspx

what you are looking for is Cross Page Connections.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.connections.aspx


(note:  because you require Cross Page Connections, you should use Sharepoint WebPart and not ASP .NET 2.0 Web Parts)
http://tahoesolutions.blogspot.com/2007/11/aspnet-20-or-microsoft-sharepoint.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now