Thursday, March 26, 2009

Renaming a SharePoint 2007 server

Hi today i configured my MOSS Server with 4GB RAM.But unfortunately i found the mistake that the formate of my system name.I have expected prob may occure.I renamed my system name.... Fuck....

Now i am unable to acess my CA site.

My face is blank.....

After Googling i found one wonderful aricle.

http://blog.sqlauthority.com/2008/09/09/sql-server-error-fix-sharepoint-stop-working-after-changing-server-computer-name/


Finally got it.
Tx Pinalkumar

Friday, March 20, 2009

How to Create a quiz application using Survey template in SharePoint 2007?

Using "Survey" list template, I recently created a quizzing application. In my application I have a list with Question s, choices and answers. Using some object model I was able to make use of the SharePoint survey list template to organize a quiz within our organization.
I inherit some of the functionality from the following link. Sridhar has gave a start up idea for my requirement.
http://blogs.msdn.com/sridhara/archive/2008/12/15/howto-create-a-quizzing-application-with-sharepoint-2007.aspx
Using his tool I am able to create a Demo Exam to attend the employee. I am imitating the permissions to the lists from Sridhar.
Well, in the code, the Read/Write Securities for the survey list are set to 2, which means "Users have Read access only to items that they create" and "Write only my items" respectively. However, once a user answers all questions and submits the quiz, he/she can ‘t attend the test again.
Here the results are declare immediately.
The results are storing in a separate list . In that I am maintaining Employee Name, Date of attempt, Score. For this I am using ItemAdded Event handler.
I am creating a feature for this.

Tuesday, March 17, 2009

How to add People picker control into Sharepoint Page Template?

I have a requirement that add a people picker control into on page template.Why means my input values will be store in DB Custom Table.Once get all details i can get reports using SSRS.


For adding People picker control u have to register the following dlls in my aspx page template.

Monday, March 9, 2009

How to check the authorization to load a page ?

I achived to check the authrization of user follwoing way.

public static bool IsUserExistsInGroup(string aGroupName, SPWeb aWeb, string aUserName)
{
SPGroup userGroup;
SPUser user;
bool userExists = false;
try
{
userGroup = aWeb.Site.RootWeb.SiteGroups[aGroupName];
try
{
user = userGroup.Users[aUserName];

if (user != null)
{
userExists = true;
}
}
catch
{

}
}
catch (Exception ex)
{
throw ex;
}
return userExists;
}

Sunday, March 8, 2009

How to develope Page Templates in MOSS?

I got the chance to work on few Page Template like EmployeeEntryForm.aspx,CertifaicationDetails.aspx etc.I would like to attach a sample screenshot.

I am ataching a screen shot How to attach .cs with my aspx page.