asp.net mvc 2 - Passing the form action attribute to a Partial View -


i have partial view using 2 different forms. in order use jquery validation use tag instead of html.beginform helper. means should specify action attribute myself asp.net mvc 2 when call html helpers. questions are:

  1. how can it?
  2. are there better ways want do?

its relatively easy, write form tag follows:

<form id="myform" method="post" action='<%= url.action("myaction") %>'> 

if calliing partial separate places easiest way achieve want


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -