2014-6-9

来源:互联网 发布:天才小熊猫 知乎 编辑:程序博客网 时间:2024/05/29 13:15
  //$("#lbtnSearch").click(function () {
            //    //alert($("#txtKeywords").val());
            //    var postdata = {
            //        Keyname: $("#txtKeywords").val()
                   
            //    };
            //    $.ajax({
            //        url: 'MemberSearch',
            //        type: "post",
            //        data: JSON.stringify(postdata),
            //        dataType: "json",
            //        processData: false,
            //        contentType: "application/json; charset=utf-8",
            //        success: function (data) {
            //            errorCode.getMsg(data,
            //                function () {
            //                    document.location.href = "list/" + data.Keyname;
            //                },
            //                function (e) {
            //                    $.dialog({
            //                        title: "提示",
            //                        icon: "error",
            //                        content: e.msg + (data.msg != '' ? '(' + data.msg + ')' : '')
            //                    });
            //                });
            //        }
            //    })

            //});




 <div class="r-list">
                        <input id="txtKeywords" class="keyword" type="text" name="txtKeywords" />
                        <a id="lbtnSearch" class="btn-search" href="###">查询</a>
                    </div> 




   ///// <summary>
        ///// 按关键字查询用户
        ///// </summary>
        ///// <param name="KeyName">关键字</param>
        ///// <returns>所查询的用户视图</returns>
        //public ActionResult MemberSearch(string KeyName)
        //{
        //   // return Content("<script>alert('删除" + KeyName + "!')</script>");
        //    return Content("<script>alert('选择" + Json(KeyName) + "!')</script>");
        //  //  return Json(text);
        //    //return View();
        //}

0 0
原创粉丝点击