public partial class Advertising_pptj_add : System.Web.UI.Page,ICallbackEventHandler { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Bind_Data(); } } #region 回调函数 string reVal = ""; public string GetCallbackResult() { return reVal; } public void RaiseCallbackEvent(string eventArgument) { int year = 0; int.TryParse(eventArgument, out year); if (year != 0) { DateTime time = DateTime.Now.AddYears(year); reVal = time.ToString("yyyy-MM-dd"); } } #endregion } 注意 继承ICallbackEventHandler接口 页面元素如下: <mce:script type="text/javascript"><!-- function CallServer() { //获取要传到后台的值 var year = $('#DrpYear').val(); <%= ClientScript.GetCallbackEventReference(this, "year", "ServerBack","")%>; } function ServerBack(value) { //后台处理以后调用的方法 $('#txtEnd').val(value); } // --></mce:script>