NewItem
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.NetworkCredenti al("TestUs er1", "Pwd1", "Domain1")
Dim TEXT1 As XmlNode = RCPILists.GetListItems("{A 3621D46-59 61-4B61-BC 70-E2BFE7A 31BC4}", 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.OuterXm l, XmlNodeType.Element, Nothing)
Dim ds As New DataSet
ds.ReadXml(xr)
SharePointListBox.DataSour ce = ds.Tables("row")
SharePointListBox.DataText Field = "ows_LinkTitle"
SharePointListBox.DataBind ()
End Sub
Private Function GetListNode() As XmlNode
Dim RCPILists As New engage.Lists()
RCPILists.Credentials = New System.Net.NetworkCredenti
Dim TEXT1 As XmlNode = RCPILists.GetListItems("{A
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.OuterXm
Dim ds As New DataSet
ds.ReadXml(xr)
SharePointListBox.DataSour
SharePointListBox.DataText
SharePointListBox.DataBind
End Sub
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 ?
Is that CustomList , Document Library or what type ?
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 ?
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 ?
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
sharepoint.bmp
ASKER
I have attached the screen shot of List Settings.
sharepoint-ListSetting.bmp
sharepoint-ListSetting.bmp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER