Advertise with us

Strongly Typed View in MVC.

Hi....
What is strongly typed view and how to create it in mvc. Please let me know, benefits of strongly typed view.

Thanks.
Last updated:9/26/2011 1:32:23 AM

2 Answers

Jenry Hock
Jenry Hock

Hi James,

For creating strongly typed view in asp.net mvc, you need to follow following steps,

--> Checked create stronlgy type view from Add View dialog box.

--> Select Model class from View Data Class drop down for which you want to create view.

Thanks.

Last updated:9/26/2011 1:32:23 AM
Shrikant Mishra
Shrikant Mishra

If we define Strongly Typed View in MVC in a few simple words, we can express it in this way.

"A view which bind with any model is called as strogly typed view. We can bind any class as a model to the view. We can reach the model properties on that view. It means we can use data-associated with the model to render controls."

Last updated:9/26/2011 1:32:23 AM

Answer