asp.net - asp mvc 2 with jquery jtable -


i´m trying make things work jtable listaction not firing post action in controller...

script

$('#gridviewfield').jtable({     title: 'the user list',     actions: {         listaction: '/customer/userlist'     },     fields: {         id: {             key: true,             create: false,             edit: false,             list: false         },         customerid: {             title: 'customer id',             list: false         },         name: {             title: 'name',             width: '15%'         },         username: {             title: 'username',             width: '15%'         },         emailaddress: {             title: 'email address',             width: '15%'         }     } }); 

controller

<httppost()> _         public function userlist() jsonresult             try                 dim users = _model.users                 return json(new {.result = "ok", .records = users})             catch ex exception                 return json(new {.result = "error", .message = ex.message})             end try         end function 

does jtable work mvc 2? should working this..

thanks

it seems had put script code in aspx file. it's working now.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -