Malaika Consultants LLC

Step2: Using HTML Server Controls in ASP.NET

by Jane Thomson 19. March 2011 01:04

Let us look at the second step of learning ASP.NET which is about learning HTML Server Controls. HTML Server Controls are just like HTML tags of old time with an additional attribute of “runat” which provides the functionality to run the control at server. This attribute gives ASP.NET control an advantage over the old age HTML controls, which allows the programmers to use it programmatically. i.e. If there exist <a> in a web page and it needs to be used dynamically with changing the address, the attribute runat = “server” can help to achieve this.

For almost all HTML elements, the server side HTML control exists. It’s pretty easy to create the HTML server control. It just requires applying the attribute runat=”server” in the regular HTML tag and it will create HTML controlled version for this tag. The HTML server controls have been contained inside the namespace System.Web.UI.HtmlControls. Because of the fact that the HTML server controls have been handled at the server side in the ASP.NET runtime, their properties can also be accessed somewhere else in the webpage through the programming. If you might have worked either with CSS, HTML or JavaScript, you might know how error-prone and cumbersome it can be to manipulate the inline styles and text within the HTML tags. HTML Server controls on the ASP.NET aims to resolve this issue by allowing to manipulate the data quickly with any of the NET languages.

Let us look at few control classes of HTML that uses the “runat” server attribute.

  1.     HTMLForm
  2.     HTMLButton
  3.     HTMLAnchor
  4.     HTMLImage
  5.     HTMLInputButton
  6.     HTMLInputImage
  7.     HTMLTable
  8.     HTMLInputText
  9.     HTMLTextArea
  10.   HTMLGenericControl

So, as described in this page, it’s really easy to use the HTML Server controls with the ASP.NET which will provide user an advantage of accessing HTML Server Controls through the programming.

 

For Step 3 please click here.

Tags:

Comments

4/19/2011 5:30:57 AM #

Searching for this for some time now - i guess luck is a lot more advanced than research engines Smile

download adventures of the road runner 1962 United States | Reply

4/19/2011 2:02:46 PM #

Your weblog seems to be incredible - complete with excellent content articles.. and so on. I believe you'll get even far better good results with including some much more movies and photographs. What do you feel. While I've bookmarked it. Many thanks.

student loan consolidators United States | Reply

4/20/2011 3:00:04 AM #

I am really enjoying the theme/design of your weblog. Do you ever run into any web browser compatibility issues? A few of my blog audience have complained about my website not working correctly in Explorer but looks great in Safari. Do you have any recommendations to help fix this issue?

free website United States | Reply

4/20/2011 3:01:47 AM #

If your html is XHTML and CSS compatible, most browsers will display them correctly

Swanand Mokashi United States | Reply

4/25/2011 12:31:17 PM #

I'm truly enjoying the design and layout of your website. It's a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Outstanding work!

Gene Viereck United States | Reply

4/27/2011 8:08:12 PM #

Very good post, thanks a lot for sharing. Do you happen to have an RSS feed I can subscribe to?

Best hotels United States | Reply

4/28/2011 2:28:23 AM #

this is a great article... very well said

vigrx plus United States | Reply

4/30/2011 2:16:03 AM #

Thanks, I liked this blog post. I found this page using AOL search, and certainly liked skimming through it, so I'll probably visit through again within a few days and read up on what's new Smile Great Post!

free microsoft points United States | Reply

4/30/2011 2:36:04 PM #

This was a beautiful blog article, informative and straightforward to read.

Lemuel Camic United States | Reply

5/1/2011 1:01:05 PM #

When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

Athens Hotels United States | Reply

5/1/2011 11:26:59 PM #

Step1: Create a Web Form

Step1: Create a Web Form

Malaika Consultants LLC | Reply

5/2/2011 9:37:06 PM #

I needed to say that it is great to know that somebody mentioned this as I had problems discovering the identical information elsewhere. This was the first place that gave me the information. Thanks.

4 Star Hotels United States | Reply

5/14/2011 2:43:44 PM #

Thank you for your time and efforts to have decided to put these things together on this site. Emily and i also very much liked your ideas through the articles over certain things. I am aware that you have many demands with your program therefore the fact that you actually took the maximum amount of time like you did to steer people like us by way of this article is even highly loved.

Geneva Hotels United States | Reply

5/15/2011 1:23:50 PM #

Very good post, thanks a lot for sharing. Do you happen to have an RSS feed I can subscribe to?

Hotels in nice United States | Reply

5/16/2011 8:17:04 PM #

I  love  your writing style  truly   loving this  web site .

sussex SEO Company United States | Reply

2/22/2012 11:20:18 PM #

Thanks for the post, how can I make is so that I receive an alert email when there is a fresh article?

Stewart Macrae United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



::: | © Malaika Consultants LLC | :::

Malaika Consultants LLC

Malaika Consultants LLC is a custom software development consulting firm located in Cary (Raleigh Durham Research Triangle AKA RTP area ) North Carolina. We offer our expert consulting services in the Microsoft .NET and related technologies. Our mission is to partner with you and ensure the success of your project. We have a team in the USA that will help you with your Information Technology needs and we strive to be truly "Your Information Technology Angels"

We are offering 1 hour of free consulting -- ASP.NET, SQL Server, IIS, anything. Contact us to get your free consulting

Recent Comments

Comment RSS