Solved

Connecting web parts on different pages?

Posted on 2008-10-23
1
418 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 43

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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