1.DateAjax未定义!!怎样回事各位高手??
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
<Services>
<asp:ServiceReference Path="/AjaxService/DateAjax.asmx" />
</Services>
</asp:ScriptManagerProxy>
function GetSum() {
var result = DateAjax.Add($("#Text1").val(), $("#Text2").val());
alert(result);
}
public class DateAjax : System.Web.Services.WebService{}
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
trigger标签内注册的Button2的click事件,只能对这里面的代码起作用!
</ContentTemplate>
</asp:UpdatePanel>