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
Post a Comment