using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//注册AjaxPro,括号中的参数是当前的类名
AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));
//标记,查看页面是否刷新
Response.Write(DateTime.Now);
}
///
/// 在字符串前加AAA_
///
///
/// 具有 AjaxPro.AjaxMethod 特性
///
[AjaxPro.AjaxMethod]
public string GetValueA(string strTemp)
{
return "AAA_" + strTemp;
}
///
/// 在字符串前加BBB_
///
///
/// 具有 AjaxPro.AjaxMethod 特性
///
[AjaxPro.AjaxMethod]
public string GetValueB(string strTemp)
{
return "BBB_" + strTemp;
}
}