About Me

My photo
a Dynamic and Energetic guy.....

Friday, June 22, 2012

SMTP Configuring in SharePoint 2010

When we need to send Emails in SharePoint 2010 environment using gmail account.

Central Administration Configuration 

Tuesday, June 19, 2012

SiteUserInfoList in SharePoint 2010

            SPSite site = SPContext.Current.Site;
            SPWeb objWeb = site.RootWeb;
            objWeb.AllowUnsafeUpdates = true;
            SPList list = objWeb.SiteUserInfoList;
            SPField field;

            if (!list.Fields.ContainsField("FieldName"))
                field = list.Fields.CreateNewField(SPFieldType.Text.ToString(), "FieldName");

                SPWeb web = SPContext.Current.Site.RootWeb;
                //Save values to user profile list
                SPUser user = web.CurrentUser;
                SPListItem userItem = web.SiteUserInfoList.GetItemById(user.ID);
                userItem["FieldName"] = 1025;

            //Read values from user profile list
            SPUser user1 = SPContext.Current.Web.CurrentUser;
            SPListItem userItem1 = SPContext.Current.Site.RootWeb.SiteUserInfoList.GetItemById(user1.ID);
            string languageID = userItem1["FieldName"].ToString();

Monday, June 11, 2012

BLOB Storage for SharePoint 2010

When we have big files in SharePoint it effects performance of whole site. We can configure BLOB storage for any SharePoint site collection.

Now we have to start "FILESTREAM"

Now "FILESTREAM" is enabled.

File folder created for Database (WSS_4444)

Log file is created inside the folder

Successful message


My Masters