asp.net - How to get checkbox values from another form with asp .net MVC4? -


here simplified example. first form :

    @using (html.beginform("action1", "mycontroller", formmethod.post))     {         <input id="cb" type="checkbox" value="true" name="mycheckbox" />         <label for="cb">check out</label>     } 

and late in same view, form :

    @using (html.beginform("action2", "mycontroller", formmethod.post))     {         <input type="submit" value="submit" id="submit" />     } 

how efficiently value (checked or not) of checkbox, in action action2 in mycontroller ?

browser don't send values form in requests. way handle onsubmit event js/jquery, add value form , submit js.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -