Load Via Server WCF

This example uses a UserControl wrapper to pass server-side parameters to the $().ucajax(); jQuery plug-in, then loading the control via WCF. This allows the parameter generation to come from the server-side, whether they be dynamic or hard-coded. This example is also using the AjaxAutoRefresh feature, you can find more details here.

Result:

Code for this page:

                <uc1:AJAXLoader ID="AJAXLoader1" runat="server" />
            
                AJAXLoader1.ControlPath = Page.ResolveUrl("~/Controls/UserControlSimple.ascx");
                AJAXLoader1.ControlParams = new Dictionary<string, string>();
                AJAXLoader1.ControlParams.Add("TextProperty1",
                                              "Set via AJAXLoader.ascx, rendered via WCF with AutoRefresh!");
                AJAXLoader1.ControlParams.Add("AjaxAutoRefresh", "True");
                AJAXLoader1.UseWCFFormat = true;