【发布时间】:2011-06-20 21:59:03
【问题描述】:
在 SSRS 2008 R2 中开发报告时出现以下错误:
请求类型的许可 'System.Web.Aspnethostingpermission, 系统,版本 2.0.0.0, 文化=中性, PublicKeyToken=b77a5c561934e089' 失败
当我使用以下一段自定义代码时:
System.Web.HttpContext.Current.Response.Write("alert('From date cannot be more than the To date');")
我已经搜索了各个站点以解决此问题,但没有用。在这方面的任何帮助将不胜感激。
这是完整的自定义代码:
Function CheckDateParameters(FromDate as Date, ToDate as Date) as Integer
If (FromDate > ToDate) Then
System.Web.HttpContext.Current.Response.Write("< script language='javascript' >alert('From date can’t be more than the To date');< /script >")
End If
End Function
【问题讨论】:
标签: javascript validation ssrs-2008 custom-code