Sys.Webforms. PageRequestManag erServerErrorExc eption: An uknown error occurred while processing the request on the server. Th

asp.net2.0 + vb.net + Ajax,点击按钮,出现一个痛苦的问题:
Sys.Webforms. PageRequestManag erServerErrorExc eption: An uknown error occurred while processing the request on the server.  The status code returned from the server was: 500
< asp:UpdatePanel ID = " UpdatePanel1 "  runat = " server "  UpdateMode = " conditional " >
                
< ContentTemplate >
                    
< asp:Table ID = " Table1 "  runat = " server "  CellPadding = " 2 "  CellSpacing = " 0 "  CssClass = " table " >                         
                        
< asp:TableRow >
                            
< asp:TableCell CssClass = " tableCell "  Width = " 8% " >
                        标题
                            
</ asp:TableCell >
                            
< asp:TableCell CssClass = " tableCell " >
                                
< asp:Label ID = " lblSubject "  runat = " server "  Text = "" ></ asp:Label >    
                            
</ asp:TableCell >
                        
</ asp:TableRow >                         
                        
< asp:TableRow >
                            
< asp:TableCell CssClass = " tableCell "  VerticalAlign = " top " >
                        内容
                            
</ asp:TableCell >
                            
< asp:TableCell CssClass = " tableCell " >
                                
< FCKeditorV2:FCKeditor ID = " FCKeditor1 "  runat = " server "  BasePath = " ~/Editor/Back/FCKeditor/ "  Height = " 300 " >
                                
</ FCKeditorV2:FCKeditor >
                            
</ asp:TableCell >
                        
</ asp:TableRow >
                    
</ asp:Table >
                    
& nbsp; & nbsp; < asp:Button ID = " btnAdd "  runat = " server "  OnClick = " btnAdd_Click "
                        CssClass
= " button "   />& nbsp; & nbsp; < asp:Button ID = " btnFinish "  runat = " server "  Text = " 完成 "  OnClick = " btnFinish_Click "  CssClass = " button "  CausesValidation = " false "   />  
                
</ ContentTemplate >
            
</ asp:UpdatePanel >

 解决问题的方法,在:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="xxx.aspx.vb" Inherits="xxx" %>里加上一个属性:ValidateRequest="false" 即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值