62,046
社区成员
发帖
与我相关
我的任务
分享
<httpHandlers>
<!--此handler为使用ajaxpro.dll-->
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>
AjaxPro.Utility.RegisterTypeForAjax(typeof(你的方法所在的类));//注册ajax方法
[AjaxPro.AjaxMethod]
public static void SendMsg(string strF,string strT,string strC)
{
string strDate = DateTime.Now.ToString();
SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text,
"INSERT INTO tb_Cs (froms,tos,what,InDate)VALUES (strF,strT,strC,strDate )");
}