Multiple Forms tag in Same Page view [ASP.NET MVC] - CsharpMagic.com

Multiple Forms tag in Same Page view [ASP.NET MVC]

Introduction: In this article, we let you know about how can we use Multiple Forms tag in Same Page view [ASP.NET MVC]. Many times during development, we find that We need to add multiple forms, Multiple buttons in the same form and so on. Here in the current article, you will be able to know how can we do the same.

Description: First question arises in mind that why we need to add multiple form tag in a single view? Ans of this question is, Let’s suppose we need to create a form which performs two actions i.e. contact us and partnership on the same page. so without having the two form tags we will not able to achieve this functionality.

some useful link which may help?

How to design Controller?:  Before start with the view, we need to add controller let’s have a good name “ConnectController”, Then add two action method on the controller name “ContactUs”, “Partnership”. The page will look like below code.

How to design Views?: Once your controller will be designed, now you can create view as given below code

 

Anand Kumar
@anandkumarv

Anand Kumar

Sr.Tech Lead at CsharpMagic
I am founder of csharpmagic.com and by profession Sr.Tech Lead. I like to explore New Technologies, New Business idea and many more
Anand Kumar
@anandkumarv

Anand Kumar

I am founder of csharpmagic.com and by profession Sr.Tech Lead. I like to explore New Technologies, New Business idea and many more

Leave a Reply

Your email address will not be published. Required fields are marked *