Introduction: In this post I have explained how we can solve the problem A page can have only one server-side Form tag.
I got this error when I try to export the Gridview web page Data with images to Pdf file. To solve this error add EnableEventValidation = "false" to @Page directive of .aspx page as shown below:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExportGrdiview_ImagesPDF.aspx.cs" Inherits="ExportGrdiview_ImagesPDF" EnableEventValidation = "false" %>
I hope it will resolve your problem.
What do you think about this article?
If you found this article useful, please share and follow on Facebook, Twitter, Google Plus and other social media websites. To get free updates subscribe to newsletter. Please put your thoughts and feedback in comments section.