add the runat=server attribute, and access it as a HtmlGenericControl.
Cheers!
Dave
----- Original Message -----
From: Eva Li
To: [email protected]
Sent: Monday, May 16, 2005 8:33 AM
Subject: [AspNetAnyQuestionIsOk] How to access html control in aspx.cs code
behind?
Can any body help me with this:
I have html controls(table, <div> tag etc) defined in my asp page.
How can I access it from aspx.cs file?
For example, I have the following html control:
<div id = "myID"... ></div>
Ho to use it to assign value from my code in aspx.cs?
Thanks!
Eva
[Non-text portions of this message have been removed]
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/