Tagged Questions
0
votes
4answers
267 views
Safely return all lists in site collection that match criteria
I'm using the following code to get all "Announcement" lists in a Web Applications site collection.
Unfortunately, sometimes the current user does not have permission to that site and the page fails ...
1
vote
2answers
773 views
Error using SPRequest when the SPWeb is already disposed
Is this correct way of using the SPSite and SPWeb and the SPList.
private SPList list;
pulic void getList()
{
using (SPSite site = SPContext.Current.Web.Site.WebApplication.Sites[0])
{
using ...
0
votes
1answer
411 views
programmatically get IDs of list from urls
Is it possible to retrieve the ID of a list or library with a url?
For example, http://MyPortal/MySubsite/MyDocuments/Forms/AllItems.aspx
If so, please provide me with some sample code.
Many ...
0
votes
1answer
128 views
Error while downloading Lists in a spweb
Here is the code
private void downloadList(SPObjectData objectData)
{
using (SPWeb currentWeb = objectData.Web)
{
foreach (SPList list in currentWeb.Lists)
...
