AJAX跳转页面
来源:互联网 发布:西方八一军演 知乎 编辑:程序博客网 时间:2024/05/21 21:18
1.绑定html页面
<input type="button" onclick=" search11By22" id="searchBtn" style=" background:url(/Content/images/button/btn-gia-search.gif); border:none; width:44px;height:23px; padding:0;"/>
2.定义js函数
var search11By22 = function () { $.ajax({ url: "/Search/Ajax22", cache: false, type: 'POST', dataType: 'html', data: ({ a:$(".searchBox").val()}), success: function (data, textStatus, jqXHR) { $("#searchResult").html(data); }, error: function (jqXHR, textStatus, errorThrown) { //alert($("#searchResult").val()); } }); };
3.Controller端进行业务逻辑
string a=string.Empty; if (!String.IsNullOrEmpty(Request["a"])) { a = Request["a"]; } long Id = QueryService.getCertficationDiamondId(a); IList<b> b = QueryService.c(diamondId); ViewData["eee"] = b; ViewData["totalCount"] = "1"; ViewData["totalPages"] = "1"; ViewData["pageNum"] = "1"; return View();
4.返给页面
- ajax页面实现跳转
- AJAX跳转页面
- ajax执行页面跳转
- ajax阻截session跳转页面
- liferay jquery ajax跳转页面
- 分组、页面跳转与ajax
- 使用AJAX实现页面跳转
- Ajax post请求跳转页面
- 使用ajax实现页面跳转
- servlet的后台页面跳转和ajax的页面跳转
- ColorBox关闭时AJAX如何跳转页面
- 模拟Ajax请求,前台页面无跳转
- ajax请求返回的页面不跳转
- ajax session过期 页面跳转问题
- ajax不跳转页面提交表单
- ajax提交session超时跳转页面,全局
- Extjs4 ajax请求超时页面跳转
- ajax超时跳转到登陆页面
- Introduction
- IT公司最流行的10种编程语言
- 喂~
- C++ 中string::size_type相关问题
- PNG Decoder技术详解(一)
- AJAX跳转页面
- Hibernate中HibernateUtil
- About the course
- Chapter 1. General Unix and Advanced C
- 连接池连接数据库问题---已解决!
- 获取场景中两个Object之间的距离
- android 新浪微博客户端的表情功能的实现
- c语言中头文件与函数文件
- Abstraction and function pointers