Solved

HTML Controls

Posted on 2007-11-28
4
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

628 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