当前位置: 代码迷 >> Ajax >> asp.netajax返回值的有关问题
  详细解决方案

asp.netajax返回值的有关问题

热度:294   发布时间:2013-07-01 12:33:04.0
asp.netajax返回值的问题
$.ajax({
                        type: "GET",
                        url: "AjaxLogin.aspx",
                        dataType: "html",
                        data: "username=" + $("#<%=username.ClientID %>").val() + "&userpwd=" + $("#<%=userpwd.ClientID %>").val(),
                        beforeSend: function (XMLHttpRequest) {
                            //Pause(this,100000);
                        },
                        success: function (msg) {
                            $("#info").html(msg);
                            alert(msg);
                        },
                        complete: function (XMLHttpRequest, textStatus) {
                            //隐藏正在查询图片
                        },
                        error: function () {
                            //错误处理
  相关解决方案