Solved

View Sharepoint content with ASP.net

Posted on 2009-07-03
8
259 Views
Last Modified: 2012-05-07
I create a webpage to view SharePoint content. I am able to get Title from SharePoint Lists.asm service. But I cannot get the body text/images for each titles. The following is my code:



   Private Function GetListNode() As XmlNode

        Dim RCPILists As New engage.Lists()
        RCPILists.Credentials = New System.Net.NetworkCredential("TestUser1", "Pwd1", "Domain1")
        Dim TEXT1 As XmlNode = RCPILists.GetListItems("{A3621D46-5961-4B61-BC70-E2BFE7A31BC4}", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
        Return TEXT1

    End Function
   

    Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim node As XmlNode = GetListNode()
        Dim xr As New XmlTextReader(node.OuterXml, XmlNodeType.Element, Nothing)
        Dim ds As New DataSet
        ds.ReadXml(xr)
        SharePointListBox.DataSource = ds.Tables("row")
        SharePointListBox.DataTextField = "ows_LinkTitle"
        SharePointListBox.DataBind()

    End Sub
0
Comment
Question by:NewItem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
8 Comments
 

Author Comment

by:NewItem
ID: 24774267
500 points is the maximun I could add.
0
 

Author Comment

by:NewItem
ID: 24774268
500 points is the maximun I could add.
0
 
LVL 15

Expert Comment

by:jinal
ID: 24775520
Can you please tell me what is tpye of List ?

Is that CustomList , Document Library or what type ?
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:NewItem
ID: 24775747
It is custom list under Lists view.
0
 
LVL 15

Expert Comment

by:jinal
ID: 24775775
Hello ,

Can you do one thing.

Open List Settings from Action and then it display all column underthat list. Capture the screen and attach image over here.

I think LinkTitle is a in built field . Am i right ?
0
 

Author Comment

by:NewItem
ID: 24777875
Link Title is build in. On sharepoint I will need to click on "title" in order to see "body", "expires" and "attachments".
sharepoint.bmp
0
 

Author Comment

by:NewItem
ID: 24778239
I have attached the screen shot of List Settings.
sharepoint-ListSetting.bmp
0
 

Accepted Solution

by:
NewItem earned 0 total points
ID: 24798271
Anyone think this question is too hard?
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

627 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