Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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.
 
0
cybernation989
Asked:
cybernation989
  • 2
1 Solution
 
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
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
yes, that is a wise choice.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now