Thursday, March 8, 2012

Enable custom web analytics reports in SharePoint 2010

Enable custom web analytics reports in SharePoint 2010

Enable-SPFEATURE WACustomReports –URL http://sitecollectionURL

MSDN Thread: http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010setup/thread/e017a327-f860-4f63-aaa7-5ad16ad4ba50

Wednesday, December 15, 2010

Today I was working on sorting a dictionary

Force full postback in Update panel

Typically update panel requires only partial post back. But occasionaly there is a requirement to post back entire page after a control fires server side event. This can be easily achived using
PostBackTrigger in Triggers section of the update panel. I had a requirement of using GridView control inside the update panel. The GridView should trigger only partial postback on sort and delete commands, but full page post back on edit and add copy commands. I could do this using ScriptManager.RegisterPostBackControl() method as described at http://www.brybot.ca/archives/update-panel-gridview-and-non-asynchronous-postbacks-in-aspnet-20. Thanks a lot Bryan.

Sunday, January 27, 2008

Custom List View Style in MOSS 2007

A description of list view style xml structure can be found at msdn http://msdn2.microsoft.com/en-us/library/ms916812.aspx. I will explain here how to modify the view style such that a column containing bullets is added in the style.

Open document at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL\XML\VWSTYLES.XML. It contains definition of several list view styles provided by default in MOSS 2007 using Collaborative Application Markup Language (CAML).










While rendering the view to a browser, all elements are parsed and converted to simple HTML tags. Thus to add a column we need to add HTML tags rather than CAML tags. To add the mentioned column, I modified <ViewHeader> and <ViewBody> sections. The view finally looks as displayed below:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...