Example #1
0
        private void GetDataFromAJAXSource(DataRequestEventArgs args)
        {
            AJAXHandler handler = (AJAXHandler)FindControl(DataSourceId.Replace('_', '$'));

            if (handler != null && handler.ContentProcessor != null)
            {
                Response.Write(handler.ContentProcessor(args));
            }
        }
Example #2
0
 /// <summary>
 /// Gets the AJAX hadler URL.
 /// </summary>
 /// <returns></returns>
 public static string GetAJAXHadlerURL(AJAXHandler handler)
 {
     return(GetHadlerURL(_handlerKeyAjax) + "&" + _dymanicDataSourceId + "=" + handler.ClientID);
 }