现在的位置: 首页 > 综合 > 正文

解决导出excel中出现的错误:只能在执行 Render() 的过程中调用 RegisterForEventValidation

2012年10月21日 ⁄ 综合 ⁄ 共 192字 ⁄ 字号 评论关闭

在导出excel的页面的aspx文件开头的第一句加入:EnableEventValidation = "false"
具体看下面:
<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation = "false" CodeFile="fdzViewApply.aspx.cs" Inherits="fdzViewApply" %>


抱歉!评论已关闭.