WCF and Ajax in .NET Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/wcf-and-ajax-in-net/ Production Grade Technical Solutions | Data Encryption and Public Cloud Expert Thu, 06 Jul 2017 01:44:22 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://www.anujvarma.com/wp-content/uploads/anujtech.png WCF and Ajax in .NET Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/wcf-and-ajax-in-net/ 32 32 WCF and AJAX https://www.anujvarma.com/wcf-and-ajax/ https://www.anujvarma.com/wcf-and-ajax/#respond Mon, 06 Jul 2015 01:44:00 +0000 http://www.anujvarma.com/?p=4833 In VS2010 – you are provided with a template for AJAX enabled WCF Service. Basically, all you need to do is Add an AJAX-enabled endpoint to a WCF service 1. […]

The post WCF and AJAX appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
In VS2010 – you are provided with a template for AJAX enabled WCF Service.

Basically, all you need to do is Add an AJAX-enabled endpoint to a WCF service

1. Create a BehaviorConfiguration and specify enableWebScript for the behavior.

<behavior name="AspNetAjaxBehavior">
                <enableWebScript />
            </behavior>
2. Create an endpoint that uses that behavior
<endpoint address=""
                behaviorConfiguration="AspNetAjaxBehavior" 
                binding="webHttpBinding"
                contract="Microsoft.Ajax.Samples.ICalculator" />

The post WCF and AJAX appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
https://www.anujvarma.com/wcf-and-ajax/feed/ 0