Below store ANOTHER page into str and it works for me How to modify so that all items within Panel1 of the CURRENT page is stored instead ? Thanks Server.Execute("Test.aspx", strWriter); strHtml = strWriter.ToString();