Hi,
I have a postback function that loads and binds several grids and I want to get the entire page, including those grids, and render to html to send out as an email.
I am doing this (VB)
for i = 0 to Page.controls.Count -1
Me.controls(i).RenderControl(htmlTextwriter) ... skiping syntax to get to the point here
next
but in this loop, which exists in a button onClick event handler, the grids are not present - I see literal controls, etc. but no grids at all. What am I missing here? Thanks.
I have a postback function that loads and binds several grids and I want to get the entire page, including those grids, and render to html to send out as an email.
I am doing this (VB)
for i = 0 to Page.controls.Count -1
Me.controls(i).RenderControl(htmlTextwriter) ... skiping syntax to get to the point here
next
but in this loop, which exists in a button onClick event handler, the grids are not present - I see literal controls, etc. but no grids at all. What am I missing here? Thanks.
