Microsoft SharePoint is a platform and a family of software products developed by Microsoft for collaboration and web publishing. Its capabilities include developing web sites, portals, intranets, content management systems, search engines, wikis, blogs, and other tools for business intelligence.
4
votes
2answers
178 views
Better way of splitting a random length string
Currently I am using this code but I am pretty sure there must be a better way of doing it,
private string ReturnEmployeeName(string userName)
{
try
{
// Username coming is ...
3
votes
3answers
556 views
Better way of parsing string to boolean
At the moment I am using this to check a boolean property in sharepoint 2007 using C# and .Net Framework 3.5
if (bool.Parse(listItem.Properties["Boolean Property"].ToString()) == false)
is there ...
1
vote
1answer
134 views
too many conditions
I have this piece of code I developed but it doesn't look efficient to me, can anyone improve it please.
private void AddToDataBase(SPItemEventProperties properties)
{
DataAccess DA = ...
1
vote
0answers
105 views
Is there any better way to insert and retrieve data into SPList?
I am using this code to insert and retrieve:
namespace Gridwebpart.VisualWebPart1
{
public partial class VisualWebPart1UserControl : UserControl
{
protected void Page_Load(object ...
1
vote
1answer
180 views
How can I improve upon my SharePoint Class?
To help learn the SharPoint Object Model (Primarily for SharePoint 2007) I've been working on a class library with a number of useful functions. I'm a junior developer and this is my first C# project ...
1
vote
2answers
487 views
Getting SharePoint users and comparing them with SPList
I have a custom SPList that has a field Assigned To, now I can add as many items as I want, and they can have same title and same User they are assigned to, but what I want is a script so that I only ...
