GridViewDrillDownjQueryAjax.aspx.cs
上传用户:mengyi0109
上传日期:2021-12-08
资源大小:58k
文件大小:1k
源码类别:

Ajax

开发平台:

Java

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10. //51aspx
  11. public partial class GridViewDrillDownjQueryAjax : System.Web.UI.Page
  12. {
  13.     [System.Web.Services.WebMethod()]
  14.     public static string GetOrders(string customerId)
  15.     {
  16.         System.Threading.Thread.Sleep(500);
  17.         Page page = new Page();
  18.         CustomerOrders ctl = (CustomerOrders)page.LoadControl("~/CustomerOrders.ascx");
  19.         ctl.CustomerId = customerId;
  20.         page.Controls.Add(ctl);
  21.         System.IO.StringWriter writer = new System.IO.StringWriter();
  22.         HttpContext.Current.Server.Execute(page, writer, false);
  23.         string output = writer.ToString();
  24.         writer.Close();
  25.         return output;
  26.     }
  27.     //5-1-a-s-p-x
  28.     [System.Web.Services.WebMethod()]
  29.     public static DateTime GetCurrentDate()
  30.     {
  31.         return DateTime.Now;
  32.     }
  33. }