From the course: Visual Basic Essential Training

Review the web application template code - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Review the web application template code

- [Instructor] Now we're going to look at what's provided by the web template. What I'll do is I'll go up here and I'll close all these tabs and we'll start looking at all the files that are included in this template. And there's a lot more files. This is an ASP.Net web template, and it's based on the model view controller pattern. So you can see there's a folder called controllers. There's one called models, there's one called views, and if you look at the controllers, here you'll find the home controller. That's the VV code. Double click on it, I can start seeing it. You see it's the public glass. You can see that it's inheriting from another dotnet type called controller, and I can see that there are some functions in here. These would be called methods when they're inside a class. So there's an index function, there's an about function, there's a contact function. And if you think about it, when I was working with that site, when I went to the about page or I went to the contact page, what's happening is it's running code that's inside this controller. There's also the views that represents the UI that's shown. So here is the about.vbhtml, here's the index page, and here you can see it's a combination of HTML, and it's a combination of VB code. Here's another example, so like on line seven here, this part where it says view data, that is visual basic code right there. There's also, because this is a website, we also need the standard web files. So if you look in content, you'll see there's CSS files. The point is, is all of this is provided for us by the template, so it gives us a nice kickstart to building our application.

Contents