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");
                list.Fields.Add(field);
                list.Update();
            }
            else
            {
                //list.Fields.Delete("FieldName");
                //list.Update();
            }

            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                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;
                userItem.Update();
            });


            //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



 Done. [FAST & EFFICIENT]



Thursday, May 31, 2012

SharePoint 2010 with supported SQL Databases

Nice article from Microsoft that describes Database size and SharePoint 2010 setup.

Friday, May 11, 2012

Create Event Receiver in SharePoint 2010


Create empty SharePoint project

Add an event receiver

 Bind with a SharePoint list

Write the code for "ItemAdding"

 Deploy "Event Receiver"

 When adding item to "TASK" list,


Task information will be saved in "Item Data Tracking" list with TASK name.

We can track all information related with each item. Simple  :)

Monday, April 16, 2012

SharePoint 2010 Web Analytics Report


                                          1. Site settings --> Site actions --> Site web analytic report

2.  Site actions --> Site web analytic report

3.  Zero data

4. Not configured

5. Central administration

6. Configure Web analytic and health data 

7. Set the Database for logging data

8. Creating Database

9. Install the SharePoint 2010 Hotfix

10. Start the "Web Analytics Data Processing Service"

11.  Web Analytics Service Application

12. Set Permission

13. Central administration --> Web Analytics Report Summary

14. Top pages

15. Top Users

16. Daily Unique Visitors

My Masters