Next Level ASP.NET / Controls
Subtitles of the Movie
Now I want to show you a couple of things about the Controls that we can drop onto our Web page and we're going to actually go a little deeper into this a little bit later on in the course because there are different types out here and we need to be aware of some of the gotchas on those things, but if I move my mouse over the Toolbox and cause it to come out - I'm going to pin this thing up and show you some things here - and I've also made this slightly wider so you can see it very easily. You will notice that the way the Toolbar is laid out is that Microsoft has categorized these things for you and notice you see Data and just a single left-click on these Header Bars here will expand or contract them. So all of my Data Controls are right there in the Data section and here are, for example, some of my login Controls. Well, if I don't like where this is - let me pull this down - I can left-click on this, drag it up to the top and let it go and you will notice that my Login Controls are now near the top. So you can customize this however you would like it and put them in whatever order you would want. Next thing, there's a really cool thing that I can do here in that notice there's a General section; there's no usable controls and I can move something into here, so for example, let's say that in my HTML controls I want to move this Table control, just left-click it, drag it into General, let it go. It's now down here. It's no longer in HTML. So I can grab the controls that I like to use a lot and I can put them into the General tab maybe. Well, I'm going to drag this back up to where I got it from and leave it alone and show you another thing I can do. And I'm going to come down here and I'm going to shrink everything and now I will right-click anywhere inside here and I will tell it to add a tab and notice it gave me one without a name and I can call this one VTC. Now this is one and I can drag it up near the top and this is one where I can drop controls that I want from a VTC Project and then I'll have them to use in this project. And there's another really cool thing I can do here. Notice I'm going to right-click this and rename the tab and I'm going to call this my Code tab and I'm going to jump back to my Code Behind page, I'll double-click my button, it'll take me back here, but what I'm going to do here is I'm just going to highlight this code, and this is code I like for some reason and I want to use it somewhere else in my web application here, so I'm going to left-click on this code, drag it into this area, into this tab called Code and let it go and notice it's now there. Well, what I can do later on another page within this project, I can grab this text, pull it onto the page, just left-click and drag and let it go and notice it just copied that. This is called Code Snippets, there's some really, really neat functionality that you can do. Any time you're coding something that you want to use or when you've got something really cool working on a page and you think man, I need that over there, you don't have to do all the Copy and Paste and all that, you can drag it over there and then go to the next page and drag it in. Anytime I want to I can right-click that and delete that item and get rid of it. Notice that when I'm on my Code Behind page it only shows me the tabs that might be used, possibly, back here. When I go back to my Design page they all come back. Now, a couple of other things and we'll leave this alone. Notice these things are in a particular order. They're ordered by Microsoft for some reason in a particular order. We can right-click and say Sort Items Alphabetically - and I want to do this on one that we're not going to use a whole lot - let's grab, say, the WebParts. Notice if I right-click and say Sort Alphabetically, as long as I know the names of the controls I'm looking for it's easier to find them this way, so keep that in mind. Then, also, I want to show you one thing here that you can do and this is an Advanced technique, but I just kind of want to throw this out there while we're here talking about this. If I use Choose Items, this will allow me to see all the controls that are out there on my machine that I don't see or that I might see. Notice the ones that are checked are out here somewhere and I can go look for like, for a menu strip and anyway, I can go grab some of these other things and I can add them in somewhere and I can click this and it will show up over here somewhere. So this is the way to add other controls in here and then I can actually go look for them. Old COM Components, all of your old COM Components that were out there like in VB 6, if you want to use those for some bizarre reason, you can go grab those things out there again and use those. If you ever try to add custom controls through a third party company that's how you're going to see those in there and you're going to add them in. One last thing that occurred to me while I'm here, you will see from time to time some people like to set them up like this is to right-click, instead of List View go to Graphics View and you just see a picture of the things and it works, but you don't see the description and to get that back just right-click, go back to List View and you can get it all. Now that's just some of the things you need to familiarize yourself with some of these controls and then go out and read up on some of these controls in some of the documentation to see what your possibilities are, drag some of these on in a test and just play with them and see what you can do and then, of course, a lot of times in some of your various QuickStart!!s and so forth from Microsoft they'll show you some of these various controls. You'll see some of them in the course here. I just wanted you to understand. A lot of things you can do with the Toolbox and it's where you'll live a lot as a developer, so I wanted you to be aware of the way you can work this thing.
Tutorial Information
| Course: | Microsoft ASP.NET 3.5 |
| Author: | Mark Long |
| SKU: | 34102 |
| ISBN: | 1-93633412-7 |
| Release Date: | 2010-03-24 |
| Duration: | 6 hrs / 69 lessons |
| Work Files: |
Yes |
| Captions: | Available on CD and Online University |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 