How to Access HTML Controls from code behind ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vivekian

    How to Access HTML Controls from code behind ?

    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 ..

  • Ezequiel Jadib

    #2
    Re: How to Access HTML Controls from code behind ?

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

    ie.

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



    In code behind, now you may have something like that

    private HtmlAnchor linkBlog;

    Regards,



    Ezequiel Jadib
    * ejadib@rdi2k.co m
    * MSN: ezequieljadib@h otmail.com
    & Blog: ejadib.wordpres s.com

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

    ==============
    "vivekian" <viveklinux@gma il.comescribió en el mensaje news:1159448638 .282322.225170@ k70g2000cwa.goo glegroups.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 ..
    >

    Comment

    Working...