Thursday, August 15, 2013

MVC Sample Creating Views with Strong Type

File->New ->Project



And click on Ok


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




Give the name of the controller




And Go to Model Folder and Create a New Class with the name Job and write the following CoDE

and go to controller and right the following code


And right click on the controller page and add view





A page will displayed with the method name as showdata

 And click on Add and write the following Code





And run the program
Demo: Controller Name


ShowData: is the method name



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...