Showing posts with the label WCF

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 projectAdd 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 ServiceSet aspNetCompatibilityEnabled attribute to true in your web.config file     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /> Set Factory attribute to "System.ServiceModel.Activation.WebScriptServiceHostFactory" in the service.svc markup and also add the reference to System.ServiceMod…