I am having a SharePoint site and i had added a custom aspx page and I want to show the announcement list items in that page. How to show the list items in a custom page ?. Helpful links and sample code would be helpful?
|
As far as I know you can't add a SharePoint list to a custom ASP.NET page however you can display list items on that custom page if your using SharePoint 2010 using user client object model, Make sure you use a custom ASP.NET page and in code behind create a asp.net list just like announcement list (depends on your requirements) and then query announcement list that you either created in a site collection and add items to custom asp.net list. hope it helps :). |
|||
|
|
|
You can edit the page and add the announcement list as a webpart. Site Actions > Edit Page > Click 'Add a webpart'(for webpart page) > Click 'Insert' tab in ribbon > Select 'WebPart' > List and libraries > select the announcement list and click OK. |
|||||||||||
|
|
I found a solution for my requirement. I had used XsltListViewWebPart for displaying announcement list in custom application page. I would like to thank everyone who offered me their advice thanks a lot. The following link did it for me http://suryapulipati.blogspot.in/2011/08/sharepoint-2010-show-add-new-item-or.html |
|||
|
|

