Thursday, August 15, 2013

MVC Sample 4(Working with View Bag)

File->new ->Project


Project Template


And click on Ok Button.
And go to controller Right click on it and select ADD Controller



Give the name of the controller



And click on Add, Then write the following Code.



And then Right Click on the Page and select    Add View





And click on Add and write the following Code

And click on Add and write the following Code


And run the program and see the output


No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...