asp.net Ajax之无刷新评论介绍 首先还是建一个DoComments.aspx页面和一个DealComments.ashx页面(代码基本上都有注释,如果没写注释,请先看前几篇!)。Docomments.aspx页面中的代码为:复制代码 代码如下: 评论信息: <%----%>
用户名 内容


发布内容:
DealComments.ashx中的代码如下:复制代码 代码如下:public void ProcessRequest(HttpContext context) { string strComment = context.Request.Form["txtComments"];//获得传过来的内容 if (string.IsNullOrEmpty(strComment))//如果不为空,返回ture { context.Response.Write("true"); } else { context.Response.Write("false"); } context.Response.End(); }简单吧!初学的童鞋......呵呵、、、、、、本系列只适合初学者,请大牛勿笑啊!