摘要: 在vs2010中,用JQuery ajax调用asp.net 2.0的 webMethod 方法时,怎么都调不出来,原来和3.5 有点出入。3.5中,无需特殊设置,可以直接用$.ajax调用在aspx.cs中,访问级别public,静态的,标记为【webmethod】的方法。aspx.cs:using System.Web.Services;[WebMethod]public static string PollCount(){ …… return getResultHTML(ds2);}jquery:<div id="divAnswers" runat=" 阅读全文
posted @ 2011-01-16 22:20 曾祥展 阅读(5891) 评论(4) 推荐(1) 编辑