Bài đăng

Đang hiển thị bài đăng từ tháng 4 14, 2016

jQuery autocomplete for ASP.NET MVC

Hình ảnh
View: @{     ViewBag.Title =  "Home Page" ; } < label   for ="somevalue"> Some value: </ label > < input   type ="text"   id ="somevalue"   name ="somevalue"   data-autocomplete-url =" @ Url.Action( "AutoComplete" ) "/> @section Scripts {      @ Scripts .Render( "~/bundles/jqueryval" )      < link   href =" @ Url.Content( "~/Content/themes/base/jquery-ui.css" ) "   rel ="stylesheet" type ="text/css"   />      < script   src =" @ Url.Content( "~/Scripts/jquery-1.7.1.min.js" ) "   type ="text/javascript"></ script >      < script   src =" @ Url.Content( "~/Scripts/jquery-ui-1.8.20.min.js" ) "   type ="text/javascript"></ script >      < script   type ="text/javascript">         $(document).ready( function  () {    

Delete confirmation with Ajax & jQuery UI Dialog in MVC4

Hình ảnh
Razer View: @{     ViewBag.Title =  "Home Page" ; } < style   type ="text/css">      .dialog_css     {          border :  0px   none   !important ;          -moz-box-shadow :  1px   2px   4px   2px   rgb(136,   136,   136) ;          -webkit-box-shadow :  1px   2px   4px   2px   rgb(136,   136,   136) ;          box-shadow :  3px   6px   8px   rgb(136,   136,   136) ;     } </ style > < br   /> < table   style =" width : 300px ;  margin : 10px   auto ; ">      < tr >     < th   style =" text-align : left ; "> Item Name </ th >     < th   style =" text-align : left ; ">           Delete      </ th > </ tr >          < tr >     < td > Laptop </ td >     < td >              < a   class ="delete-link"   href ="Home/Delete/18"> Delete </ a >      </ td > </ tr