leupold,
Thanks for the response. I'll take a look at it.
Actually, I have been trying to do the below coding with no success.
My module displays a report (in a div tag called 'divReport'). When I click on the Print button, I want to show the report on a different page from where it can be printed.
I put an asp button on my module with a PostBackURL to print.aspx. In print.aspx, I am trying to get the innerhtml of divReport, like this..........
Dim
parentpage As System.Web.UI.Page = Me.PreviousPage
divPrint.InnerHtml = div1.InnerHtml
Dim div1 As System.Web.UI.HtmlControls.HtmlGenericControl = parentpage.FindControl("divReport")
This works perfectly fine in my ASP.Net test project but when I call print.aspx from the DNN module, it gives an error saying the control tree doesnot match with the previous page.
When I try to print the IDs of the controls on the previous page, it just shows me these... skin , Doc , Type , Head , Body
How can I get the innerhtml of divReport?
Thanks for the help.