Binding Html Controls Dynamically

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

    Binding Html Controls Dynamically

    If I have an html control on the page like

    .....
    <div id="div1>Doing Well</div>
    ....

    Is there a way to bind that control to a HtmlGenericCont rol dynamically?
    I don't want to have to declare the control like

    class MyPage : Page {
    protected HtmlGenericCont rol div1;

    ...
    }

    The goal is to use the same code-behind for multiple aspx pages that have
    varying amounts of div's and with varying locations.

    Cheers,
    Aeden


Working...