TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Enable to SharePoint User Information List
Sagar Pardeshi
Oct 13
2014
Code
1.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
protected
void
EnableUSIList(
object
sender, EventArgs e)
{
try
{
string
strFields =
""
;
//Context.Response.Output.Write("Clicked Me!");
SPSite Site = SPContext.Current.Site;
Context.Response.Output.Write(Site +
"<br/>"
);
using
(SPWeb Web = Site.OpenWeb())
{
Web.AllowUnsafeUpdates =
true
;
SPList List = Web.Lists[
"User Information List"
];
Context.Response.Output.Write(List.ToString() +
"<br/>"
);
List.Hidden =
false
;
List.Update();
Web.AllowUnsafeUpdates =
false
;
Context.Response.Output.Write(List.Hidden.ToString() +
"<br/>"
);
}
}
catch
(Exception ex)
{
Context.Response.Output.Write(
"Errors: "
+ ex.Message.ToString());
}
}
sharepoint User Information List