asp.net mvc - mvc need to call controller method from view without <form> -


is there other possibility call controller method in c# using form input element? practically speaking want execute method pushing button or link.

so far i'm using:

@using (html.beginform("refreshquestion", "admin")) {      <input type="submit" value="refresh" class="questioninput" />       } 

many in advance _tek

that should call controller method. if don't want use code can use action link.

 @html.actionlink("refresh", "refreshquestion", "admin") 

do need post or making call controller?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -