By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,052 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,052 IT Pros & Developers. It's quick & easy.

How to Access HTML Controls from code behind ?

P: n/a
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 ..

Sep 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
* ej****@rdi2k.com
* MSN: ez***********@hotmail.com
& Blog: ejadib.wordpress.com

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

==============
"vivekian" <vi********@gmail.comescribió en el mensaje news:11**********************@k70g2000cwa.googlegr oups.com...
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 ..
Sep 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.