Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 19th, 2010, 09:54 AM
Authorized User
 
Join Date: Dec 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default Data view web part

Hi all

I am fairly new to sharepoint development and I have recently created a data view web part which gets its data from a list.

On my web part page I have created a connection between 2 web parts using date as the connection. The data view web part displays a document with its date. The other web part is a menu that displays the entire group of documents by date.

The user can then navigate through the available documents using the menu web part that lists the documents by date. Depending on which date the user selects then a different document will be displayed in the other webpart on the page.

The problem I have is that since I created the data view web part new documents have been created and when the user opens the page the very recent document does not display. It always reverts to the document that was the latest document at the time I created the data view web part. So on that day if it was 25/01/2010 no matter if there is an entry in the list for today and no matter that the menu web part displays that document date as a choice to select, the other web part that displays the documents that was created using a data view web part its still displaying the 25/01/2010 document.

Does anyone know how to make sure the latest document is always displayed in the data view web part?

Thanks

Rob
Reply With Quote
  #2 (permalink)  
Old June 24th, 2010, 04:43 AM
Authorized User
 
Join Date: Jan 2010
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to elizas Send a message via Skype™ to elizas
Default 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; }
}


2. The provider class :

public class Provider : WebPart, Test
{
TextBox tb = new TextBox();
Button btn = new Button();
string _Name = "";

public string Name
{
get{return _Name;}
set{_Name = value;}
}

Thanks,
Eliza
SharePoint Customization
__________________
Cheers,
Eliza

Mindfire: India's Only Company to be both Apple Premier & Microsoft Gold certified.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter-4, Web Part mns BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 October 16th, 2009 04:56 PM
What web part have they used? sharepointbaby BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 0 May 30th, 2008 09:51 PM
Web part as universal data provider tesicg ASP.NET 2.0 Professional 0 September 26th, 2007 10:57 AM
Web part soso_soso SharePoint Development 0 September 7th, 2006 08:37 AM
Sharepoint Web Part evidica C# 1 July 22nd, 2006 04:48 AM



All times are GMT -4. The time now is 01:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.