2014-6-9

  //$("#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();
        //}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章