Getting the controls from ASPX page
I am adding controls(checkboxes) dynamically to a ASP:table object. My requirement is user will click some of the checkboxes and click save. Then I want to get all the checkboxes which are clicked. But I am not getting any checkboxes in the table objecy by table.findcontrol methods.
I am settingnthe ID and Text properties of the checkbox in the code.
I am caching the table in the page load event as follows
If Not Page.IsPostBack Then
objTemplateClass = New TemplateClass.TemplateClass
'Gets the resources available for a template
dsTempResource = objTemplateClass.getResourcesForTemplate()
CreateTable(dsTempResource)
Cache("TemplateTable") = tblTemplateResources
Else
Cache("TemplateTable") = tblTemplateResources
End If
Am I missing anything?
|