HTML Controls

This is not an exam or homework

What needs to be done in order to access ASP.NET HTML controls on the server side?

1. Set the ServerSide property to true for each control that needs to be accessed on the server side.
 
2. Add the following directive on top of the page: .
 
3. Add runat="server" for each control that needs to be accessed on the server side.
 
4. HTML controls are solely intended for client side use and can not be accessed on the server side.
 
cybernation989Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
yes, that is a wise choice.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
as noted previously, please do some reading BEFORE posting these exam-prep questions...
0
 
cybernation989Author Commented:
I promise the question is not Homework, exam or on any exam prep sheet that I know of... Anyway onto answering that fun fun questions.

According to http://delphi.about.com/od/aspnet/l/aa062204a.htm
"
To make HTML elements programmatically accessible, you can indicate that an HTML element should be parsed and treated as a server control by adding a runat="server" attribute. Another attribute, "id", allows you to programmatically reference the control - by accessing attributes as properties.
"

So I would go with 3
0
All Courses

From novice to tech pro — start learning today.