Hello Forum,
I tried to export a part of my HTML page to PDF and send to email, with the use of this C# code. But I get an error “Control 'Gridview1' of type 'GridView' must be placed inside a form tag with runat=server.”
If I place my gridview in the form tag, it means that my gridview will be outside the wrapper and it also make web page look scattered.
Please how can I resolve this issue?