G
Guest
Web app: asp.net 2003, IE, IIS, VB
top: system.page
-first level: placeholder
--second level: usercontrol
---third level: user control containing a datagrid
Datagrid itemdatabound assigns:
Dim button As LinkButton = CType(e.Item.Cells(0).Controls(0), LinkButton)
e.Item.Cells(1).Attributes("onclick") =
Page.GetPostBackClientHyperlink(button, "")
When debugging "Page" is nothing. "Me.Page" is nothing. Traced "e's" parents
back to the datagrid object at which point the datagrid's parent is nothing.
If I place the usercontrol containing the datagrid in a placeholder and the
placeholder on web page, this works just fine.
Just out of curiosity, why does the datagrid not see it's parent usercontrol
when the parent usercontrol is a control of another usercontrol?
Hope this makes sense....
tia,
Sue
top: system.page
-first level: placeholder
--second level: usercontrol
---third level: user control containing a datagrid
Datagrid itemdatabound assigns:
Dim button As LinkButton = CType(e.Item.Cells(0).Controls(0), LinkButton)
e.Item.Cells(1).Attributes("onclick") =
Page.GetPostBackClientHyperlink(button, "")
When debugging "Page" is nothing. "Me.Page" is nothing. Traced "e's" parents
back to the datagrid object at which point the datagrid's parent is nothing.
If I place the usercontrol containing the datagrid in a placeholder and the
placeholder on web page, this works just fine.
Just out of curiosity, why does the datagrid not see it's parent usercontrol
when the parent usercontrol is a control of another usercontrol?
Hope this makes sense....
tia,
Sue