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

Python -3

  Lists It is used to store Collection of data. Lists are created using square brackets: List Items Order cannot be changed. It can have dup...