Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing controls 1

Status
Not open for further replies.

seabaz2000

IS-IT--Management
Feb 24, 2006
79
IE
Hi,
Is it possible to access the majority of the form elements, i.e buttons, labels, file uploads using their id's in the code behind page of an aspx page. I am having problems accessing certain types of elements. I can access labels and buttons but i can't seem to access, file uploads, divs, images by their id's. Is it possible to do this?
 
Yes.. you can access HTML controls by adding runat="server" to the element's tag.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top