Form Tag with some
input tag in MVC View and use of GET and POST Method in MVC
In MVC we
use GET and POST Method to Each Request and Reply. If we do not set any method
for MVC Application then it uses GET Method by Default.
For Example:-
Create a
simple MVC Application. Create Home controller and create index view. Simply
print Some String in this view and Execute this code.
Note: - To understand basic of MVC
kindly read my previous articles: - Controller in MVC and View in MVC
After executing
the code you will get following output.
Figure 1
Now press
the F12 to open the DevTool. Developers Tool is a Debugging Tool in Chrome
which provides accessibility of Web Application in Detail.
Figure 2
Now create
another view in this application. Create another method name Welcome in Home
Controller and create view for this method. Execute the application and request
the Welcome View and then press F12


