GridViewDrillDownjQueryAjax.aspx.cs
上传用户:mengyi0109
上传日期:2021-12-08
资源大小:58k
文件大小:1k
源码类别:
Ajax
开发平台:
Java
- using System;
- using System.Data;
- using System.Configuration;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- //51aspx
- public partial class GridViewDrillDownjQueryAjax : System.Web.UI.Page
- {
- [System.Web.Services.WebMethod()]
- public static string GetOrders(string customerId)
- {
- System.Threading.Thread.Sleep(500);
- Page page = new Page();
- CustomerOrders ctl = (CustomerOrders)page.LoadControl("~/CustomerOrders.ascx");
- ctl.CustomerId = customerId;
- page.Controls.Add(ctl);
- System.IO.StringWriter writer = new System.IO.StringWriter();
- HttpContext.Current.Server.Execute(page, writer, false);
- string output = writer.ToString();
- writer.Close();
- return output;
- }
- //5-1-a-s-p-x
- [System.Web.Services.WebMethod()]
- public static DateTime GetCurrentDate()
- {
- return DateTime.Now;
- }
- }