Introduction to Angular JS.

What is Angular JS? Angular JS is Java Script framework introduced by Google in 2012 (version 1.0). It is an open source. Angular JS allows a developer to write a powerful client-side coding. To work with Angular JS just download angular js file from https://angularjs.org and reference it into your HTML, ASPX page. The first … Read more

Data Contract in WCF

In my earlier blog, I wrote about Other Contracts. Please refer this link Contracts in WCF Learn Data Contract It is used to define the data which will be exchanged between client and server. A simple Data Contract with Data Member will look like this. [DataContract] public class Product {     private int _ProductID;     … Read more

Create Datatable using .Net Client Context in SharePoint 2010

Create Data Table while using SharePoint 2010 Client Context with .Net Code I am using .net code to access SharePoint List.I created a method ExecuteSPQuery() which returns Data Table. For that I wrote below code. public static DataTable ExecuteSPQuery()     {         DataTable dtData = new DataTable();         Microsoft.SharePoint.Client.ListItemCollection listCollection = null;         ClientContext context = new ClientContext(“SITE_URL”);         try         {                        Site oWebsite = context.Site;             context.AuthenticationMode = ClientAuthenticationMode.Anonymous;             List list = … Read more

What is Operation Contract in WCF Service?

In my earlier blog I wrote about Contracts and Service Contract. Please refer this link Service Contract in WCF Operation Contract Operation Contracts are nothing but the functions or methods exposed to the client which may or may not return to perform some logic at server end. A simple Operation Contract with Service Contract will … Read more

What is Service Contract in WCF?

Service Contract in WCF Contracts in WCF are very important. Contracts are responsible for how to communicate, what protocol to use and what message to send. Following contracts available in WCF: Service Contract Operation Contract Data Contract Message Contract Fault Contract We will see all contract one by one with the help of practical implementation … Read more

WAS Hosting in WCF Service

As we all know that IIS 6 supports HTTP protocol only. Windows Process Activation Service (WAS) supports non-http protocols in IIS. So, WAS helps WCF service to host with HTTP and NO-HTTP protocols such as net.tcp. Once you changed binding in the config file to netTcpBinding Your service will throw this error. Don’t worry there … Read more

Self Hosting a WCF service

As we know WCF supports various hosting options. Self Hosting is one of them. What is Self Hosting? WCF allows hosting a service in an application such as Console Application. Create a Console Application Project to host a WCF Service. Add WCF Service project Reference in this Console Application. Delete existing App.config file. Add new … Read more

How to Host a WCF Service in IIS?

If you are new to WCF services then please read my earlier blogs. Go through with this link – WCF Tutorial step by step.WCF supports a various way to host a service. In this blog, I will explain about Hosting a WCF Service in IIS. How to host WCF service in IIS? Step 1: Create … Read more

Introduction of JSON

What is JSON? JSON stands for JavaScript Object Notation. JSON is a data exchange format between javascript and server-side languages like JSP, ASP.NET etc. How to write data in JSON format ? Within the script tag, we write JSON data format. Benefit of using JSON JSON is a lightweight data exchange format built into Java … Read more

RSS
YouTube
YouTube
Instagram