Creating an MVC View In VB.Net

Creating an MVC View In VB.Net - go in the Shared folder...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Creating an MVC View In VB.Net Application Development II IS 3920
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MVC Project Templates Conventions Over Configurations MVC Conventions reduce the number of configuration files Key Folders use Naming Conventions Controllers folder § Name must be SomeName Controller.vb § [SomeName] is the Controller name § [SomeName] comes after the domain in the URL
Background image of page 2
MVC URL Routing Conventions ASP.NET URL Request: http://www.example.com/index.aspx?ID=5 Loads index.aspx file and get ID = 5 as parameter in ViewState MVC URL Request http://www.example.com/Home/Details/5 Maps to ‘Home’ controller And ‘Details’ action method (function) With Item ID of 5 sent to the method (function)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MVC Project Templates More MVC Folder Conventions Views folder § Contains subfolders with Controller names § A Controller’s Views are in its subfolder § Any views shared by 2 or more controllers should
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: go in the Shared folder Ex: Error page and Master Template page Models folder Contains Models files for custom data objects and classes and shared references for your applications Datastores should be places in the App_Data object MVC Project Templates MVC Views No Code-Behind or Page events The interaction with the application is through a Controller Controller passes data to the view in the form of a String or a Model Object Views are created using Controller action methods (functions) Views can also be created using the Solution Explorer MVC Project Templates MVC Master Pages Master pages allow you to create views with predefined elements You can have multiple master pages in an application...
View Full Document

Page1 / 6

Creating an MVC View In VB.Net - go in the Shared folder...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online