Link to home
Start Free TrialLog in
Avatar of NewItem
NewItemFlag for Canada

asked on

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
Avatar of NewItem
NewItem
Flag of Canada image

ASKER

500 points is the maximun I could add.
Avatar of NewItem

ASKER

500 points is the maximun I could add.
Can you please tell me what is tpye of List ?

Is that CustomList , Document Library or what type ?
Avatar of NewItem

ASKER

It is custom list under Lists view.
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 ?
Avatar of NewItem

ASKER

Link Title is build in. On sharepoint I will need to click on "title" in order to see "body", "expires" and "attachments".
sharepoint.bmp
Avatar of NewItem

ASKER

I have attached the screen shot of List Settings.
sharepoint-ListSetting.bmp
ASKER CERTIFIED SOLUTION
Avatar of NewItem
NewItem
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial