Hi, an extension onto my last problem with the null execption error. Now my label control seems to be refusing to render. the label has a id of 'lblTotal' the code below the variable name is lblTotalCount.
here is the code.
Private Sub GetControls(ByVal ctrlMain As System.Web.UI.Control)
Dim ctrl As System.Web.UI.Control
For Each ctrl In ctrlMain.Controls
If (ctrl.GetType().ToString().Equals("System.Web.UI.WebControls.Label")) Then
Dim lblTotalCount As New Label
lblTotalCount = CType(ctrl, Label) ...
Go to the complete details ...