27 December 2010

Allow onclick event in Sharepoint

Add below code in web config file

between the ..................... tag







Note:
/amu2/* is the web site URL

17 December 2010

Sharepoint 2007 Keys

Microsoft office server 2007 keys

Setup Key for Standard: WFF2P-M8XYH-3B33C-6KPP9-XVQTG
Setup Key for Enterprise: F6YVR-4XY7K-RCVY4-37FBK-G44PY

Outlook.pst file location

If want to back up your emails just copy the 'outlook' folder from below path.
C:\Documents and Settings\vijay.bhaskar\Local Settings\Application Data\Microsoft
You will get all the files including Calendar, Tasks and every thing.

14 December 2010

To get Users list from the MOSS

//Write this code

 

SPSite mySite = new SPSite("http://amu-sp:31273/amu2");

            SPWeb web = mySite.OpenWeb();

 

           

            ServerContext context = Microsoft.Office.Server.ServerContext.GetContext(new SPSite("http://amu-sp:31273/amu2"));

            UserProfileManager upm = new Microsoft.Office.Server.UserProfiles.UserProfileManager(context);

           // UserProfile user=upm.GetUserProfile(

 

 

            foreach (UserProfile user in upm)

            {

               

               // Console.WriteLine(user[PropertyConstants.UserName]+":");

                if (user[PropertyConstants.WorkEmail] !=null)

                {

                    Console.WriteLine(user[PropertyConstants.WorkEmail]);

                }

            }