How to Access HTML Controls from code behind ?

  • Thread starter Thread starter vivekian
  • Start date Start date
V

vivekian

Hi ,

I have a table which needs to be populated at runtime. Is there a way
to do this without using a server side control like repeater or
datagrid ? How can an HTML control be accessed in code behind ?

Thanks in advance ..
 
Hi!, you have to use the tag runat and id in HtmlControls.

ie.

<a href="http://ejadib.wordpress.com" id="linkBlog" runat="server">Blog</a>



In code behind, now you may have something like that

private HtmlAnchor linkBlog;

Regards,



Ezequiel Jadib
* (e-mail address removed)
* MSN: (e-mail address removed)
& Blog: ejadib.wordpress.com

1 San Martin 617 P. 2 B
( (54-11)4893-1694
: www.rdi2k.com

==============
 
Back
Top