Just set up each button to run a different function.  Each function would
set the form's "action" and submit the form.  Something like this (function
only):

function send1() {
    $('#form1').attr('action', '/item/page1');
    $('#form1').submit();
}

etc...


---
Patrick Steele
http://weblogs.asp.net/psteele


On Fri, May 24, 2013 at 4:45 PM, Luciano Pereira <lucianopereir...@gmail.com
> wrote:

> How can I create a view form with two "submit" buttons? Each one calling a
> different method from the controller?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to castle-project-users+unsubscr...@googlegroups.com.
> To post to this group, send email to castle-project-users@googlegroups.com
> .
> Visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to