0
comments
Saturday, December 29, 2012
.Net Framework 4.0 Required.
Download Link
0
comments
Saturday, December 29, 2012
0
comments
Saturday, December 8, 2012
0
comments
Thursday, November 8, 2012
SharePoint 2010 Contributor group doesn't have permission ''Add and Customize Pages". This permission is granted from designers and the above. This causes to error when try to adding webpart to the webpart page and customize webpart as a Contributor.
0
comments
Saturday, August 4, 2012
|
XmlTextReader
reader = new XmlTextReader( "feedurl");
SyndicationFeed
feed = SyndicationFeed.Load(reader);
|
|
Console.WriteLine(feed.Title.Text);
Use below link to find about class details
Using below code you can read each feed
item.
foreach (SyndicationItem item in feed.Items)
{
Console.ForegroundColor
= ConsoleColor.White;
Console.WriteLine(item.Title.Text);
Console.ForegroundColor
= ConsoleColor.Gray;
Console.WriteLine(item.Summary.Text);
Console.ForegroundColor
= ConsoleColor.Green;
Console.WriteLine(item.Links.First().Uri);
Console.WriteLine();
}
|
0
comments
Friday, July 13, 2012
How to Add new item to property bag
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite("siteUrl"))
{
using (SPWeb web = site.OpenWeb())
{
web.AllowUnsafeUpdates = true;
web.AllProperties.Add("key", "value");
web.Update();
web.AllowUnsafeUpdates = false;
}
}
});
How to Read property from property bag
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite("siteUrl"))
{
using (SPWeb web = site.OpenWeb())
{
if (web.AllProperties.ContainsKey("key"))
{
MessageBox.Show(web.Properties["key"].ToString());
}
}
}
});
Copyright @ 2013 Telan Niranga