Click here to Skip to main content
15,894,017 members
Articles / Web Development / ASP.NET

Bind ASP.NET DataGrid using Ajax-Enabled WCF Service without Refreshing your page

Rate me:
Please Sign up or sign in to vote.
4.75/5 (13 votes)
16 Sep 2011CPOL2 min read 33.7K   1.5K   20  
How to bind ASP.NET dataGrid using Ajax-Enabled WCF Service without refreshing your page
<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>

    <system.serviceModel>
        <behaviors>
            <endpointBehaviors>
                <behavior name="Bind_Asp.Net_Grid_WCF_and_ClientScripting.EmployeeServiceAspNetAjaxBehavior">
                    <enableWebScript />
                </behavior>
            </endpointBehaviors>
        </behaviors>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
            multipleSiteBindingsEnabled="true" />
        <services>
            <service name="Bind_Asp.Net_Grid_WCF_and_ClientScripting.EmployeeService">
                <endpoint address="" behaviorConfiguration="Bind_Asp.Net_Grid_WCF_and_ClientScripting.EmployeeServiceAspNetAjaxBehavior"
                    binding="webHttpBinding" contract="Bind_Asp.Net_Grid_WCF_and_ClientScripting.EmployeeService" />
            </service>
        </services>
    </system.serviceModel>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Jordan Jordan
I am Software Developer start programming from vb6(Classic ASP) to VB.Net 2010, I am working with the most popular technologies like Silverlight 4, WCF Services, WPF, WF4 , ASP.Net, ADO.Net, JQuiry, Ajax, Web Services and more.

Comments and Discussions