How To Install Nintex Analytics 2010

How To Install Nintex Analytics 2010 one of the best thing about Nintex Analytics 2010 is the installation experience. like other Nintex products, the installation experience is fast and easy. you just need to let Nintex Analytics know a few settings and it will take care of the rest. in the following video I’ll show how to install Nintex Analytics 2010 on your environment. Written by vahid Wednesday, April 18, 2012 at 7:54 AM ...

April 18, 2012 · 1 min

How to trigger a Nintex Workflow from a Nintex Analytics report schedule

How to trigger a Nintex Workflow from a Nintex Analytics report schedule well we all know that Nintex Analytics provides a great insight to our SharePoint environments through the vast number of reports it provides out of the box. But how can we turn these information into some actions? the good news is that Nintex Analytics 2010 integrates well with Nintex Workflow which would enable us to make some decision and execute a set up process based on the outcome of a report. ...

April 17, 2012 · 3 min

Using Unity with ASP.NET WEB API Controller

Using Unity with ASP.NET WEB API Controller Support for Ioc containers is backed into ASP.NET WEB API and uses the service locator pattern dependency resolver by default. the default service locator implements the IDependencyResolver interface. This interface has two methods. GetService: Creates one instance of a specified type.* GetServices: Create a collection of objects of a specified type. in order to use Microsoft Unity framework with ASP.NET WEB API we need to map these to methods to Resolve and ResolveAll methods of Utity. to do so first add the following method to your global.asax.cs or your bootstrapper class ...

April 14, 2012 · 2 min

Hosting ASP.NET WEB API

Hosting ASP.NET WEB API You may want to host you HTTP Service i.e. ASP.NET WEB API in a console app. well it can be easily done. to show this lets create a console app and add reference to the following assemblies: System.Web System.Web.Http System.Web.Http.Common System.Web.Http.SelfHost System.Web.Http.WebHost System.Net; System.Net.Http.Formatting; System.Net.Http.Headers; this step is optional but for just touching on Json.net I am going to install Json.net using Nuget. ![image](http://www.taslimi.me/Media/Default/Windows-Live-Writer/Hosting-ASP.NET-WEB-API_13135/image_thumb.png "image") Now lets add a CarInfo class to return it in our controller ...

March 18, 2012 · 3 min

SQL syntax formatter

SQL syntax formatter Well it’s really pity that neither VS2010 nor SQL development studio provide SQL syntax formatter. but anyway there good news is that there are sites like http://www.tsqltidy.com out there which would this for you for free. but that was not enough for me. i wanted to have tool with me to do this even when i am not connected to the internet–although does not happen that often - ...

March 15, 2012 · 2 min

Invisible character when parsing DateTime

Invisible character when parsing DateTime Today we faced a crazy situation. we have a piece of code in one of our applications which parses date and time value entered into a text box. Being lazy/smart developers we normally copy paste the sample value from the help file in order to test it. but crazy part was that when we copy paste it, .net could not parse the value throwing exception saying that the string was not in correct format. but if we typed exactly the same value it would work! aha let me copy paste both values into notepad and compare them char by char. ok they are exactly the same. ...

March 14, 2012 · 2 min

ASP.Net WEB API VS WCF Service

ASP.Net WEB API VS WCF Service Well as soon as i heard and read about asp.net web api, i was very excited about it but in between i had that mmmmm moment. i was like, this is great but what about WCF? I am not going to create any WCF services anymore? so I had think again about it but could not find any concrete answer as these two are overlapping in many areas. so I had to do a bit more R&D about the differences and I came across this blog post from Matt Milner. ...

March 11, 2012 · 1 min

Make a call to a JSON/XML ASP.Net WEB API from server code

Make a call to a JSON/XML ASP.Net WEB API from server code There is plenty of articles out there on how to make a ajax call to a asp.net web api service. but what if you want to make a call to the same service from a server code? this can happen because of various reasons like when you want to offer a service and use IP validation. anyway this is quite simple to call a service exposed by ASP.net WEB API either using JSON or XML. and it is like calling a WCF or XML web service from a server side code without adding a reference to the service. ...

March 11, 2012 · 3 min

The Visual Studio 2011 Fakes Framework

The Visual Studio 2011 Fakes Framework I was just reading this blog post about Unit Testing Improvement in Visual Studio 2011 and noticed that there is something new called Fakes Framework. I didn’t get it first time so I had to read it again and also had to read this MSDN article to get my head around it. I mean I was getting so excited about it that I had to read it twice to make sure I have understood it properly. then I went like wow that’s great. now I can test old SharePoint code without TypeMock. ...

March 10, 2012 · 4 min

ASP.NET Web API

ASP.NET Web API I am a huge fan of Ajax. If you want to create a great experience for the users of your website – regardless of whether you are building an ASP.NET MVC or an ASP.NET Web Forms site — then you need to use Ajax. Otherwise, you are just being cruel to your customers. Most of the new websites expose data from the server as JSON and use jQuery to retrieve and update that data from the browser. ...

March 8, 2012 · 5 min