July 2016

  • Data Contract Serialization and De-Serialization – WCF Service Tutorial

    .

    Serialization is the process of converting an object to transferable data format. By default WCF uses DataContractSerializer. And vice-versa process is called De-Serialization.       public class Product     {         public int  ProductID         {             get;set;         }           public string ProductName         {             get;set;         }           public string ProductSeller         {             get;set;         }           public decimal ProductCost         {             get;set;        …

  • Angular JS Ng-repeat directive

    .

    In this blog I will explain about ng-repeat directives in Angular JS. ng-repeat repeats set of HTML. <div ng-app=”” ng-init=”EmpName=           Stu =[{stufname :‘John’,address:‘India’ }          ,{stufname :‘Tom’,address:‘USA’ }          ,{stufname :‘Sachin’,address:‘India’ },          {stufname :‘Rahul’,address:‘UK’ }          ,{stufname :‘Rohan’,address:‘Australia’ }          ,{stufname :‘Sunil’,address:‘India’ }          ,{stufname :‘Rohit’,address:‘India’ }];”>             <br />             <input type=”text”…

  • 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…

  • ,

    Upload a file using JQuery and Generic Handler in ASP.Net

    .

    In this blog we will learn how to use jquery and generic handler in asp.net to upload a file.I have used Jquery to call a generic handler to upload a file. In this blog I have written code which accepts jpg file only and file size should not exceed 10 MB.You may customize as per…

  • 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;    …

  • ,

    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 =…

  • 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…

  • 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…

  • 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…


RSS
YouTube
YouTube
Instagram