R
Rob
You can find datagrid in page by refering the form.
Gatagrid is a child control of Form.
Here is the code
-----------------
Dim ctl As New Control
For Each ctl In Page.FindControl("form1").Controls
If TypeOf ctl Is DataGrid Then
Response.Write(ctl.ID)
End If
Next
Let me know if it works.
Gatagrid is a child control of Form.
Here is the code
-----------------
Dim ctl As New Control
For Each ctl In Page.FindControl("form1").Controls
If TypeOf ctl Is DataGrid Then
Response.Write(ctl.ID)
End If
Next
Let me know if it works.