A page can have only one server-side Form tag.

Introduction: In this post I have explained how we can solve the problem A page can have only one server-side Form tag.

server-side

Description:
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.

Post a Comment

[blogger]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget