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