Posts

Showing posts from July, 2012

About LINQ to SQL

Below are the few best articles talks about Linq to Sql. http://www.codeproject.com/Articles/215712/LINQ-to-SQL-Basic-Concepts-and-Features http://www.codeproject.com/Articles/230380/LINQ-to-SQL-Advanced-Concepts-and-Features http://www.hookedonlinq.com/LINQtoSQL5MinuteOverview.ashx http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html http://blogs.msdn.com/b/ricom/archive/2007/07/05/dlinq-linq-to-sql-performance-part-4.aspx

Archiving your SharePoint workflow history lists

I found a good article to archive SharePoint history list using SSIS package. http://whitepages.unlimitedviz.com/2011/09/archiving-your-sharepoint-workflow-history-lists/

SharePoint workflow scalability and performance

I found a good msdn article which talks about workflow scalability and performance. http://msdn.microsoft.com/en-us/library/dd441390(v=office.12)

Query user profile using JavaScript

I got a requirement where when the user selected any person in people picker we are required to show user information by querying user profile. Here the challenge is the people picker control does not have any post back event except one client side event i.e., AfterCallbackClientScript . Now one more challenge is we have to get user profile information in JavaScript then I found web service option. Here is the code snippet for this. First in the page load method we have to set JavaScript method to the client side event. peAuthorName.AfterCallbackClientScript = "getProfileInfo" ; Below is the definition for above JavaScript method. Here getProfileInfo method by default expect two arguments. senderId - people picker control ID data - people picker control entities data //get the profile information of selected user.     function getProfileInfo(senderId, data) {         var xmlDoc;    ...

Get QueryString value using JavaScript

As you all know that in C# we can easily fetch query string values using Request.QueryString collection. But you may ask how can we fetch values in JavaScript so here is the code snippet to achieve this. function getQueryStringValue(param) {         qryString = window.location.search.substring(1);         qryParmas = qryString.split( "&" );         for (i = 0; i < qryParmas.length; i++) {             params = qryParmas[i].split( "=" );             if (params[0] == param) {                 return params[1];             }         }        ...