Solved

Connecting web parts on different pages?

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

10 Experts available now in Live!

Get 1:1 Help Now