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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -