After Adding
Public Overrides Sub VerifyRenderingInServerForm(control As Control)
End Sub
This Erros Comes.
RegisterForEventValidation can only be called during Render();
Line 171: Dim sw As New StringWriter()
Line 172: Dim hw As New HtmlTextWriter(sw)
Line 173: pnlPerson.RenderControl(hw)
Line 174: Dim sr As New StringReader(sw.ToString())
Line 175: Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)