Using Html Server Controls in your Web Pages

The HTML Server controls are the simple server controls that can be used in the HTML page. These server controls are the ordinary server controls that have a runat=”server” attribute to it. For example an InputText html server control will look like,

<input type=text | password
id="an_id_for_this_control"
maxlength="maximum_characters_allowed"
size="textbox_width"
value="textbox_content_default_value"
runat="server" >

In the above code you will find that an InputText html server control has several attributes that can be set during design time using the properties window and they can also be set during runtime programmatically. The runat=”server” attribute indicates that it is a server control.

There are many html server controls that you can use in your web page. Some of the commonly used input html server controls are HtmlInputText, HtmlInputButton, HtmlInputImage, HtmlInputHidden, HtmlInputRadioButton, HtmlInputCheckBox, and HtmlInputFile. Name, Value, and Type are the properties that are shared among these html input server controls. Container controls like HtmlTextArea, and HtmlSelect share properties like InnerHtml and InnerText.

If you are using an IDE like Visual Studio .Net then you can find the html controls grouped in a tab called Html Controls in the Tool palette. You can simply drag and drop the controls in the web page to use them.






______________________________________________________

Recommended Resource



| Why should you go for Server Controls | Advantages of using .NET Server Controls | Understanding ASP.NET Server Controls | Creating Web Server Controls | Server Side Controls in ASP.Net | Creating Custom Server Controls | Server Controls in ASP.NET Web Page | Using Html Server Controls in your Web Pages | Understanding Dynamic Server Controls in ASP.NET | Using ASP Server Controls Templates | Developing ASP.NET Server Controls | Setting properties for ASP.NET Custom Server Controls | Implementing ASP.NET Server Side Controls | Creating Professional ASP.NET Server Controls |

 

“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

| Privacy Policy for www.dotnet-guide.com | Disclosure | Contact |

Copyright - © 2004 - 2024 - All Rights Reserved.