How to Add ASP.NET Standard Control Class in Web Application
More DIY videos at 5min.com
Published: Jun 11, 2009
Video Summary:
Video Tags:
Source: How to Add ASP.NET Standard Control Class in Web Application
Video Transcript: (More)
Video Summary:
Learn how to add standard ASP.NET Standard Control Class in Web Application.
Video Tags:
standard control class, visual c, visual studio 2005, aspnet, Microsoft Windows, web development, total training, HTML
Source: How to Add ASP.NET Standard Control Class in Web Application
Video Transcript: (More)
Okay, so let us just get rid of that pop up and move back to the toolbox. I will just close the html tag. We are going to have to look at some of the other controls now. We will click on the standard item. As you can see, there is much richer side of controls available here. Each of these controls corresponds to an asp.net web control class and contains quite an extensive range through functionality, properties and events to encapsulate much more intelligence. You can use these controls to put together web applications much more easily than using the corresponding html controls. So for example, I could drag a textbox control on to my form and I will just tidy it up a little bit. There we go.
Okay, so as you can see, the textbox control functionally has the same purpose as the input text control we added earlier. That is an asp.net control as signified by the asp prefix. And it corresponds to a class called textbox in the asp.net class library. We will have to look at this a little bit later. I want to see some of the methods and events and properties available. While we are here, let us just take a look at some of the attributes we can set on this control. So, I will click this spacebar and up pops the IntelliSense. Instantly, you can see the difference. Whereas, for a basic input control we had earlier, the list of properties is quite limited. Here, we spoke for choice, we can set the background color for the property and we can set information such as Theming. We can specify the BorderWidth and so on and so on. We can specify all number of attributes to do with fonts. We can specify the Maximum Length property and also we have href set of service side controls that enable us to handle user input via service side code. So, we will have to look at how to handle some of these events in particular, the own text change event a little bit later in the next lesson.
Okay, so hopefully at this stage, you stand to appreciate that. Whereas, if you want to use some of the basic controls from the html tab on the toolbox, you can have much easier deal if you use the correspondent high level controls such as asp textbox. Okay, so that is the textbox control. We also have control such as buttons and link buttons. A link button is called an interesting control. It looks like a hyperlink that when you click it, it generates a service side click event as if it was a normal button. So, it is like a cross really between a hyperlink and the button control. The image button as its name suggests is a button which you can attach a gif or jpeg or some other type of graphic. We have a regular hyperlink and so on and so on. So, we will be having and get some of these controls in the next few examples.
If I just scroll the list down and let further, you can see there are some quick high level controls. So, for example, calendar. A calendar is a class of the control and it enables you to present an entire calendar on the screen to the user and AdRotator enables you to display adverts or commercials rotating between adverts on the screen. It has got a nice and a control, you might want to have to play with if you get a moment. Okay, so we have to look at some of those controls in more detail later. We just close that tab there and we will have to look at some of the other controls.
Okay, so as you can see, the textbox control functionally has the same purpose as the input text control we added earlier. That is an asp.net control as signified by the asp prefix. And it corresponds to a class called textbox in the asp.net class library. We will have to look at this a little bit later. I want to see some of the methods and events and properties available. While we are here, let us just take a look at some of the attributes we can set on this control. So, I will click this spacebar and up pops the IntelliSense. Instantly, you can see the difference. Whereas, for a basic input control we had earlier, the list of properties is quite limited. Here, we spoke for choice, we can set the background color for the property and we can set information such as Theming. We can specify the BorderWidth and so on and so on. We can specify all number of attributes to do with fonts. We can specify the Maximum Length property and also we have href set of service side controls that enable us to handle user input via service side code. So, we will have to look at how to handle some of these events in particular, the own text change event a little bit later in the next lesson.
Okay, so hopefully at this stage, you stand to appreciate that. Whereas, if you want to use some of the basic controls from the html tab on the toolbox, you can have much easier deal if you use the correspondent high level controls such as asp textbox. Okay, so that is the textbox control. We also have control such as buttons and link buttons. A link button is called an interesting control. It looks like a hyperlink that when you click it, it generates a service side click event as if it was a normal button. So, it is like a cross really between a hyperlink and the button control. The image button as its name suggests is a button which you can attach a gif or jpeg or some other type of graphic. We have a regular hyperlink and so on and so on. So, we will be having and get some of these controls in the next few examples.
If I just scroll the list down and let further, you can see there are some quick high level controls. So, for example, calendar. A calendar is a class of the control and it enables you to present an entire calendar on the screen to the user and AdRotator enables you to display adverts or commercials rotating between adverts on the screen. It has got a nice and a control, you might want to have to play with if you get a moment. Okay, so we have to look at some of those controls in more detail later. We just close that tab there and we will have to look at some of the other controls.





No comments yet.