Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Bounty
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Enable to SharePoint User Information List
WhatsApp
Sagar Pardeshi
Oct 13
2014
1.3
k
0
0
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
Up Next
Enable to SharePoint User Information List