Solved

HTML Controls

Posted on 2007-11-28
4
344 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 142

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 142

Accepted Solution

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data is not showing from images 15 48
Message not shown 5 50
ASP.net Fit 3 divs on screen side by side 3 26
Modal Popup Extender control 1 20
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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