Friday, September 25, 2015

Fast Site Collection Creation in SharePoint Server 2016 IT Preview

Fast Site Collection Creation in SharePoint Server 2016 IT Preview

Fast Site Collection Creation is a new capability in SharePoint Server 2016 IT Preview that improves Site Collection creation performance by reducing Feature activation overhead. Similar to the approach associated with MinRole Site Collections that support Fast Site Collection Creation are Feature-optimized.

Fast Site Collection Creation is a mechanism designed to improve provision performance of Site Collections through instrumenting a copy operation using SPSite.Copy at the Content Database level.

The primary vehicle in addressing this scenario is the enablement of a Site Master or master copy of the Site Collection for an enabled Template that provides the source Site Collection when a request is made for creating a new Site Collection.


Full list of New and improved features in SharePoint Server 2016 IT Preview

Wednesday, September 23, 2015

Document Library accessibility improvement in SharePoint Server 2016 IT Preview

Document Library accessibility:

The following features are now available for working in SharePoint Server 2016 IT Preview document libraries:

  • Landmarks to a page make it easier to navigate, and there are alt text improvements for all major navigation links.
  • Keyboard shortcuts are provided for the following document tasks:
    • Alt + N - New
    • Alt + E - Edit
    • Alt + U - Upload
    • Alt + M - Manage
    • Alt + S - Share
    • Alt + Y - Synchronization
  • Focus improvements, such as keeping focus on prior elements and focus trapping.
  • Announcements for upload progress.
  • Announcements for file name and file types when browsing folder and file lists.
  • Improved callout reading.
  • Fixed use of color issues for views switcher.
  • Updates to the Help documentation.

New and improved features in SharePoint Server 2016 IT Preview

Summary of the new features that you can try out in this SharePoint Server 2016 IT Preview release.


SharePoint Server 2016 IT Preview includes new document library accessibility features.

Durable links:

Resource-based URLs now retain links when documents are renamed or moved in SharePoint.


The Fast Site Collection Creation feature is a rapid method to create site collections and sites in SharePoint.

Image and Video previews:

You can now preview images and videos in SharePoint Server 2016 IT Preview document libraries.

Access Services:

New Access features are available when you deploy Access Services in SharePoint Server 2016 IT Preview.

Compliance features:

New compliance features for SharePoint Server 2016 IT Preview include the document deletion and in-place hold policies.

Customized web parts:

The compile time for customized XSLT files used for Content Query, Summary Links, and Table of Contents Web Parts is improved.

Encrypted Connections:

SharePoint Server 2016 IT Preview supports TLS 1.2 connection encryption by default.

Filenames - expanded support for special characters:

SharePoint Server 2016 IT Preview now supports using some special characters in file names that were previously blocked.

Hybrid in SharePoint 2016:

Hybrid in SharePoint Server 2016 IT Preview enables you to integrate your on-premises farm with Office 365 productivity experiences, allowing you to adopt the cloud at your own pace.

Identify and Search for sensitive content:

SharePoint Server 2016 IT Preview now provides the same data loss prevention capabilities as Office 365.

Information Rights Management:

SharePoint Server 2016 IT Preview provides Information Rights Management (IRM) capabilities to secure information by encrypting and securing information on SharePoint libraries with OneDrive for Business.

Large file support:

SharePoint Server 2016 IT Preview now supports uploading and downloading files larger than 2,047 MB.

MinRole:

MinRole is a new feature in SharePoint Server 2016 IT Preview that allows a SharePoint farm administrator to define each server’s role in a farm topology.

Mobile experience:

SharePoint Server 2016 IT Preview offers an improved mobile navigation experience.

New controls for working with OneDrive for Business:

SharePoint Server 2016 IT Preview provides controls at the top of your personal document folders that make common tasks in OneDrive for Business more accessible.

New Recycle Bin in OneDrive and Team sites:

SharePoint Server 2016 IT Preview adds a link for the Recycle Bin in the left navigation area of the OneDrive and Team sites.

Open Document Format (ODF):

SharePoint Server 2016 IT Preview adds support for Open Document Format (ODF) files to use in document library templates.

Project Server:

New Project Server features are available in SharePoint Server 2016 IT Preview.

ReFS file system support:

SharePoint Server 2016 IT Preview now supports drives that are formatted with the ReFS file system.

SharePoint Search:

SharePoint Search Server Application has significant changes to its deployment.

Sharing improvements:

SharePoint Server 2016 IT Preview has many new sharing improvements available.

Site Folders view:

SharePoint Server 2016 IT Preview provides a new Site Folders view that lets you access the document libraries in sites that you're following.

Sites page pinning:

This new feature helps you see and follow sites.

SMTP Connection Encryption:

SharePoint Server 2016 IT Preview supports sending email to SMTP servers that use STARTTLS connection encryption.

SMTP ports (non-default):

SharePoint Server 2016 IT Preview adds support for SMTP servers that use TCP ports other than the default port (25).

Web Application Open Platform Interface Protocol (WOPI):

You can now rename files, create new files, and share files from within the WOPI iframe on the browser page.


Reference:


Saturday, September 6, 2014

Store bytes conent to zip file in C#



You can store bytes in zip using the GZipStream object.

 
public static void CreateZipFromBytes(string fileName, byte[] bytesToCompress)

        {

            using (FileStream fileToCompress = File.Create(fileName))

            {

                using (GZipStream compressionStream = new GZipStream(fileToCompress, CompressionMode.Compress))

                {

                    compressionStream.Write(bytesToCompress, 0, bytesToCompress.Length);

                }

            }

        }

Serialize object to XML with custom object with indentation


Serialize object to XML with custom object with indentation 


If you want to serialize object without including the tag XMLInclude and with nice indentation and formatting use the below method  

 

public static String SerializeObject(object objectToSerialize, List<Type> knownTypes)

        {

            XmlSerializer xmlSerializer = new XmlSerializer(objectToSerialize.GetType(), knownTypes.ToArray());

            var stringBuilder = new StringBuilder();

            var xmlTextWriter = XmlTextWriter.Create(stringBuilder, new XmlWriterSettings { NewLineChars = "\r\n", Indent = true });

            xmlSerializer.Serialize(xmlTextWriter, objectToSerialize);

            return stringBuilder.ToString();

        }


Happy programming :)

Tuesday, October 19, 2010

How to strip HTML and special character from string.

I have created following function to strip or remove HTML and specail character from string.
Regular Expression for special character:([^\w\+\-\\\/_ ])
Regular Expression for HTML strip:<(.\n)+?>

-------------Code--------------------
public static string StripHTMLAndSpecialChars(string sHTML)
{
string strOutput = StripHTML(sHTML);
System.Text.RegularExpressions.Regex objRegExp = new System.Text.RegularExpressions.Regex(@"([^\w\+\-\\\/_ ])");
//Replace all characters other than ones specified above
strOutput = objRegExp.Replace(strOutput, "");
objRegExp = null;
return strOutput;
}

----------------Function to strip HTML-----------------
public static string StripHTML(string sHTML)
{
string strOutput;
System.Text.RegularExpressions.Regex objRegExp = new System.Text.RegularExpressions.Regex("<(.
\n)+?>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
//Replace all HTML tag matches with the empty string
strOutput = objRegExp.Replace(sHTML, "");
objRegExp = null;
return strOutput;
}

-----------------------------

Monday, October 18, 2010

Capature exception or crashes in asp.net application.

we ca capature exception or crashes that are generated




1-you have added try catch blocks and in catch block you can easily get the text of exception like



try



{



}



catch(Exception ex)



{



//insert exception in db or any log file (ex.tostring())





}



2-There are exception that are not handled through try catch block you can easily get those as well



on global_asax there is an event Application_Error you can use it for exception locking





void Application_Error(object sender, EventArgs e)

{

foreach (Exception ex in Context.AllErrors)

// insert in log or db file;



}



3.There is another way you store your Unhandled exception just add an event handler on global.asax



void Application_Start(object sender, EventArgs e)

{



AppDomain.CurrentDomain.UnhandledException +=newUnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

}



void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

{

// store to (e.ExceptionObject as Exception);



}