C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




ASP.NET Controls


Posted Date: 10 Sep 2006    Resource Type: Articles    Category: Web Applications
Author: vamshi krishnaMember Level: Gold    
Rating: Points: 10



Introduction


There are more then 50 standard ASP.NET controls which you can add to your web form pages, these controls are divided into two broad categories: HTML controls and Web controls.


ASP.NET HTML controls



consider a standard html text <input> tag, for example is the html input text control
:

<input id="name" type="text" size="20" runat="server">

And the standard html <img> tag is the html image control
:

<img id="image" src="home.jpg" runat="server">

For most of the HTML tags, a server-side html control equivalent with runat="server" attribute. if the html tag is not represented by distinct server control it can be treated as a Generic HTML control.

Html controls can represent any HTML tag through the html generic control. If new HTML tags are introduced with future HTML versions, you can still capable to use new tags with HtmlGenericControl. You can even use HTMLGenericControl to represent a tag that you make up yourself like- <myTag>. You have freedom to make your own tags. if you add an attribute to the standard html input text control.

:

<input id="name" type="text" newattribute="Bold" runat="server">

Thie new attribute will not result error. If you add a strange attribute to an html control, the control simply pass the attribute with its value unaltered to the web browser when the control is rendered.

These controls were designed to be server-side duplicates of the standard HTML tags so that you can quickly convert an existing HTML document into ASP.NET page.

Web controls


You can either use the HTML controls or use Web controls to build the pages, both will have mostly equal tags. the HTML controls are contained in System.Web.UI.HTMLControls namespace, and the Web controls are contained in the System.Web.UI.Webcontrols namespace.

Web controls are more structured version of the standard HTML tags. Web controls do not directly correspond to standard HTML tags, you cannot create a web control by sumply adding attribute runat="server". Web controls is not identical with standard HTML tags. for example the web control that is equivalent to the standard HTML text <input> tag
:

<INPUT type="button" value="submit">

equivalent web server control
:

<asp:Button id="Button1" runat="server" Text="Submit"> </asp:Button>


Summary



There are more web controls then there are HTML controls. Several of the Web controls do not corresond to existing HTML tags at all. The web controls can be divided into five categoiries.

Basic web controls
Validation web controls
Data Controls
Rich Web controls
Mobile controls

I'll discuess some of the advanced controls among this categories in my future articles.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: CheckBoxes in DataGrid
Previous Resource: ASP.NET 2.0 Performance Tuning Considerations
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use