Insert record in database using angular js

In this blog I will explain about how we can save data in SQL database using Angular JS.In this example i have written a web method which is available in .cs file. So lets start by create a web application in VS2015.On ASPX Page: Link this script in head section of page: <script src=”../js/angular.min.js”></script> Write … Read more

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;         … Read more

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” … Read more

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

RSS
YouTube
YouTube
Instagram