Solved

HTML Controls

Posted on 2007-11-28
4
345 Views
Last Modified: 2012-06-21
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
Comment
Question by:cybernation989
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20364241
as noted previously, please do some reading BEFORE posting these exam-prep questions...
0
 

Author Comment

by:cybernation989
ID: 20364407
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
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 20364450
yes, that is a wise choice.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question