:: Quotive ASP.NET (4) ::

zhaozj2021-02-08  205

Detuction ASP.NET (4) Green Apple Studio (Compilation) 01-5-21 09:50:43

WEB control

You may worry, like This control represents a new control that requires you skilled. However, they are not difficult to learn because they have corresponding people in HTML. For example, for a very simple text box, in HTML, you do this:

The corresponding web control is this:

In both, you can notice that the web control is identified by code "ASP:" namespace, and in XML, use the slash to end the element. You don't have to use XML format, you can also use the HTML format, with a semicolon to end the tag: . But you will find that XML format is used in many code examples, and the number of code words is also more concise. The namespace must be used, it is responsible for identifying the text box TextBox control from. All standard Web controls are part of the ASP namespace. This is important when writing your own control.

The TextBox control is like a standard input box, but you should consider the three input controls below: