<script type="text/javascript">
$(document).ready(function () {
$("#Search").click(function () {
var res = $.ajax({ url: "ResponsePage.aspx", data: "str=" + $("#s_info").val()+"&start=1&end=10000", async: true, dataType: "html",
beforeSend: function (XMLHttpRequest) {
$("#content").html("aaa");
},
success: function () {
$("#content").html("");
$("#content").html(res.responseText);
$("#content").html(s_res);
}
}); var res = $.ajax({ url: "ResponsePage.aspx", data: "str=" + $("#s_info").val() + "&start=10001&end=20000", async: true, dataType: "html",
beforeSend: function (XMLHttpRequest) {
$("#content2").html("bbb");
},
success: function () {
$("#content2").html("");
$("#content2").html(res.responseText);
$("#content2").html(s_res);
}
});
});
});
</script>SQL语句是通过参数between "start" and "end" 来确定查询的内容
str是所查询字段的条件.
现在查询所得结果content和content2是相同的求线程解决方案.
$(document).ready(function () {
$("#Search").click(function () {
var res = $.ajax({ url: "ResponsePage.aspx", data: "str=" + $("#s_info").val()+"&start=1&end=10000", async: true, dataType: "html",
beforeSend: function (XMLHttpRequest) {
$("#content").html("aaa");
},
success: function () {
$("#content").html("");
$("#content").html(res.responseText);
$("#content").html(s_res);
}
}); var res = $.ajax({ url: "ResponsePage.aspx", data: "str=" + $("#s_info").val() + "&start=10001&end=20000", async: true, dataType: "html",
beforeSend: function (XMLHttpRequest) {
$("#content2").html("bbb");
},
success: function () {
$("#content2").html("");
$("#content2").html(res.responseText);
$("#content2").html(s_res);
}
});
});
});
</script>SQL语句是通过参数between "start" and "end" 来确定查询的内容
str是所查询字段的条件.
现在查询所得结果content和content2是相同的求线程解决方案.
解决方案 »
- 问一个jquery.ajax的问题。
- .NET实现腾讯微博账号登陆获取用户登陆信息
- ASP.NET访问DataGrid模板列按钮的问题
- 我遇见了奇怪的问题,不知道问题出在哪里,请大家 给我指点迷津,谢谢。
- asp.net中的datalist 能否象winform里datagridview一样可以下拉?急!!!
- http://1.1 500 server error ,创建asp.net项目时,出这个错误
- datagird里checkbox 的操作
- 怎样在我的web頁面嵌入window的小画板
- 关于页面静态化更新索引的问题!
- 菜鸟求教:TextBox显示DataGrid第N条记录的第N个字段的值,怎么实现??????
- ASPxTreeList 每次点击节点,都要从新加载一次数据
- asp.net权限控制:父类控制子类控件
如何设置缓存?cache=true这样我也试过.貌似没区别吧.