Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

View Sharepoint content with ASP.net

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
NewItem
Asked:
NewItem
  • 6
  • 2
1 Solution
 
NewItemAuthor Commented:
500 points is the maximun I could add.
0
 
NewItemAuthor Commented:
500 points is the maximun I could add.
0
 
jinalCommented:
Can you please tell me what is tpye of List ?

Is that CustomList , Document Library or what type ?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
NewItemAuthor Commented:
It is custom list under Lists view.
0
 
jinalCommented:
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
 
NewItemAuthor Commented:
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
 
NewItemAuthor Commented:
I have attached the screen shot of List Settings.
sharepoint-ListSetting.bmp
0
 
NewItemAuthor Commented:
Anyone think this question is too hard?
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now