-
Play Item
How to Add Different Types of Control with ASP.NET HTML Control Tab
By 5minLearn how to add different types of controls with ASP.NET…
-
Play Item
How to Add ASP.NET Standard Control Class in Web Application
By 5minLearn how to add standard ASP.NET Standard Control Class in…
-
Play Item
How to Create a Web Site with Visual Studio HTML Control Tab
By 5minLearn how to create a simple Web Site with various…
-
Play Item
How to Invoke the Run As Server Control Function
By 5minLearn how to Invoke the Run As Server Control Function…
-
Play Item
Genetic Test For Kids' Hearing Loss
in GeneralThis medical video looks into genetic testing for hearing loss.
-
Play Item
Aries and Sagittarius
in AstrologyHey baby, what's your sign?' It might be the cheesiest pickup line…
-
Play Item
The Apollo 1 Fire in Cape Kennedy Florida
in GeneralLearn about the Apollo 1 Fire in Cape Kennedy Florida
-
Play Item
Roast Turkey Recipe
in American CookingIna shares her secrets to roasting a perfect holiday turkey.
How to Add Different Types of HTML Controls and Logical Code in ASP.NET
More DIY videos at 5min.com
Video Summary:
Learn how to add different types of HTML controls and logical code in ASP.NET Web Application.
Video Tags:
html control class, visual studio 2005, Microsoft Windows, web development, total training
Source: How to Add Different Types of HTML Controls and Logical Code in ASP.NET
Video Transcript: (More)
Okay so clearly, things are looking back. The next step on the next set of cells, we come to enable the user to specify whether they can use Visual C#, Visual Basic or Visual J# as programming languages. So first of all, in this cell, I am going to type some static text, languages. Now we use a checkbox control for each language that the user might be able to program in. So that is the first one. It is either no one and let us have one more, there we are. So, we have three checkboxes. Let us just look at the properties. Well the ID’s are checkbox 1, checkbox 2, and checkbox 3 so let us just change that. So, let us change the first checkbox to be VB Checkbox. Now, you will notice there is no way unfortunately to have been up to specify what the actual text is but we want to associate with that checkbox so we are going to go back in the source view to add that text in, in the moment.
So before we get that, let us just set the ID for each of the other checkboxes. That is the second checkbox and I will set each ID to be VCCheckbox. Finally, we will select the third checkbox and we will set each ID to be VJCheckbox as in Visual J#. Okay then, let us go back to source view and in the source view, let us put some text to each checkbox. So, if we can find the input control for the VBCheckbox and then after that control, we will type some static text, Visual Basic, there we go. I want each control to appear on the separate line so I am going to put a line break in. Now, let us put in some text for the next checkbox so that is going to be Visual C#. We will have a line break in as well and then finally for the last checkbox, we will have some text. We will have Visual J#. Let us check how that appears in the designer, very good. That is looking much better. And one thing I do want to change, if you notice the Age and the language text, I want that text to appear vertically aligned in this table row.
So, to do that, there is a Valign property we need to set on the table row. We can use these at the bottom to select the table row, hand click the option, select the tag. So, that selects the TR tag. Now, I can go to the properties in the property window and if I scroll down, I should find there is Valign property that is and I can set the Valign property to top. Okay, so that aligns the controls vertically at the top of that table row which is what I wanted to achieve. Now, in the next table row, currently we have five columns in the table row and what I want to do is display a label which expands the entire row. So, the easiest way to do that if I select the TR element and then right click on that table row and merge cells So, that has effectively merged the five columns into a single cell so that I can put a large textbox label into that area. Now then, if we go to the toolbox and look for the label command, you will find the recent one. We have to add the label command manually in the source view. We need to go back to the source page. Find the table column that we just set up and in here, I am going to create





No comments yet.