Posts

Showing posts with the label Jquery

WCF web service & Jquery

Here is a new item we can try out, seems to be very light. In this post i will walk through a simple credential validation. Create a simple ASP.NET project Add a the following mark-up in your Login.aspx page     < div>         < input  type= "text"  id= "username"  />         < input  type= "password"  id= "password"  />         < input  type= "button"  id= "login"  value= "Login"  />     </ div > Add jquery library and reference     < script  src= "Scripts/jquery-1.5.1.js"  type= "text/javascript">< / script > Add WCF Service Set aspNetCompatibilityEnabled attribute to true in your web.config file     < serviceHostingEnvironment  multipleSiteBindingsEnabled= " true "  aspNetCompatibilityEnabled= " true "  /> Set Factory attribute to "System.ServiceModel.Activation.WebScriptServiceHo