I developed a view in asp.net mvc3 outside the course registration form. This is a very simple form with the name, father’s name, qualification and submit button, after clicking the submit button I want to display information using a different view. please suggest me how can I send information from one view to another.
my controller class:
namespace RegistrationForm.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return RedirectToAction("registrationView");
}
public ActionResult About()
{
return View();
}
public ActionResult registrationView()
{
return View();
}
}
}
My opinion:
@ {Layout = null; }
registrationView Enter a name
</td>
<tr>
<td>
Enter Father Name
</td>
<td>
<input type="text" name="fname" id="fname" />
</td>
<tr>
<td>
Enter Qualification
</td>
<td>
<input type="text" name="qly" id="qly" />
</td>
</tr>
</table>
<input type="submit" value="submit" />
</div>
source
share