Sponsored Ad

Wednesday, November 16, 2011

Upload files to SharePoint Doc Library from ASP.NET

Upload files to SharePoint Doc Library from ASP.NET Here is the custom code to upload files to SharePoint doc library from ASP.NET. You could use the SharePoint API if you are on the same server or using web services.

Here is the sample code assuming that you know the URL of the document library and to load the document to the root folder. You have to add Microsoft.sharepoint.dll reference to your project ASP.NET

using (SPSite siteCollection = new SPSite(url))
{
using (SPWeb spWeb = siteCollection.OpenWeb())
{
SPList spList = spWeb.GetList(url);
string fileName = "XXXX";
FileStream fileStream = null;
Byte[] fileContent = null;
try
{
string docPath = XXXX; //physical location of the file
fileStream = File.OpenRead(docPath + fileName);
fileContent = new byte[Convert.ToInt32(fileStream.Length)];
fileStream.Read(fileContent, 0, Convert.ToInt32(fileStream.Length));
spList.RootFolder.Files.Add(spList.RootFolder.Url + "/" + fileName, fileContent, true);
spList.Update();
}
catch(Exception ex)
{
}
finally
{
if (fileStream != null)
{
fileStream.Close();
}
}
}
}

Tuesday, November 15, 2011

Microsoft SharePoint Workspace 2010 | YouTube Video

SharePoint 2010 is very quick and functionality wise quite rich. Go through the following video to under stand SharePoint workspace 2010.

SharePoint opens locally on your PC, Enabling you to sync your folders and work on or offline. Collaborating as a team is easy with SharePoint technology.

I like this video, lot of good knowledge is there. Go through it and understand about SharePoint workspace 2010.

Monday, November 14, 2011

Full Requirements (Hardware/Software) of SharePoint Server 2010

The following are the hardware and software requirements with respect to share point server 2010 and apply to single server with built-in database installations and server farm installations that include a single server or multiple servers in the farm.

Hardware Requirements:

1. Processor – 64 bit

2. RAM -- 4 GB for developer or evaluation use

8 GB for single server and multiple server farm production use

3. HDD -- 80 GB for system drive

Maintain free space at least twice as the RAM for other operations

Software Requirements:

1. Database server in a farm

The 64-bit edition of Microsoft SQL Server 2008 with Service Pack 1

(Or)

The 64-bit edition of Microsoft SQL Server 2005 with Service Pack 3

2. Single server with built-in database

The 64-bit edition Windows Server 2008 Standard, Enterprise, Data Center, or Web Server with SP2

Web Server (IIS) role

Application Server role

Windows PowerShell 2.0

Microsoft Chart Controls for the Microsoft .NET Framework 3.5

Microsoft .NET Framework version 3.5 SP1

Microsoft Sync Framework Runtime v1.0 (x64)

SQL Server 2008 Express with SP1

Microsoft Filter Pack 2.0

SQL Server 2008 Native Client

Windows Identity Foundation (WIF)

Microsoft SQL Server 2008 Analysis Services ADOMD.NET

ADO.NET Data Services Update for .NET Framework 3.5 SP1

3. Front-end Web servers and application servers in a farm

The 64-bit edition of Windows Server 2008 Standard, Enterprise, Data Center, or Web Server with SP2.

Web Server (IIS) role

Application Server role

Microsoft .NET Framework version 3.5 SP1

Microsoft Sync Framework Runtime v1.0 (x64)

Microsoft Filter Pack 2.0

Microsoft Chart Controls for the Microsoft .NET Framework 3.5

Windows PowerShell 2.0

SQL Server 2008 Native Client

Microsoft SQL Server 2008 Analysis Services ADOMD.NET

ADO.NET Data Services Update for .NET Framework 3.5 SP1

Windows Identity Foundation (WIF)

4. Client computer

A supported browser

Optional Software:

1. Single server with built-in database and front-end Web servers and application servers in a farm

Microsoft SQL Server 2008 R2

Microsoft SQL Server 2008 R2 Reporting Services Add-in

Microsoft Server Speech Platform

Windows 7 or Windows Vista

2. Client computer

Microsoft Office 2010 client

Microsoft Silverlight 3

Check Browser Compatibility for Publishing Sites

Check Browser Compatibility for Publishing Sites For publishing sites, the Web Content Management features built into SharePoint Server provide a deep level of control over the markup and styling of the reader experience. Also various third party content management tools like wordpress and Joomla can be embedded with share point easily and with full support. Page designers can use these features to help ensure that the pages they design are compatible with additional browsers, including Internet Explorer 6, for viewing content. However, it is the page designers’ responsibility to create pages that are compatible with the browsers that they want to support. A standards-based browser, such as Internet Explorer 8 or Firefox 3.x, is required to author content. Content authoring means to render content at the presentation view, and thus making it available to the end client. The client can use the services provided only when the rendering is accurate and profound.

Features whose compatibility has to be verified with browsers are:

1. Active X Controls – Active X Controls are scripted controls that perform some actions according to the script written. These are important in terms of their potential uses and developer control. But some browsers are not able to support them accurately and reliably.

2. CSS – CSS is coming with new standards these days. Older CSS standards are supported by nearly all browsers, but new standards have to be updated to them.

3. HTML 5.0 – HTML 5.0 provides many new features over HTML 1.0, also provides many extended support. Tasks in 5.0 are easier and compact than 1.0. But support for HTML 5.0 is still in action.

4. Layout – Most of the browsers still support fixed layout only. Presently markets are flooding with fluid layout. They provide easy programming support in terms of presentations and rendering. But if browser doesn’t support fluid layouts, then rendering will go completely rogue.


Do you want to receive free Sharepoint updates?

Enter your email address:

Website Updates