使用水晶报表的时候报错“无法识别的转义序列”

steve_zp_ 2003-04-15 08:04:50
使用水晶报表的时候报错“无法识别的转义序列”。错误列:<CR:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Width="1030px" Height="1073px" ReportSource='<%# "C:\Inetpub\wwwroot\test7\CrystalReport1.rpt" %>'></CR:CrystalReportViewer>
...全文
40 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hncoffee 2003-04-17
  • 打赏
  • 举报
回复
也可改为ReportSource='<%# "C:/Inetpub/wwwroot/test7/CrystalReport1.rpt" %>'>
都得这么写
steve_zp_ 2003-04-15
  • 打赏
  • 举报
回复
是不是在asp.net中所有路径都要这样写???
steve_zp_ 2003-04-15
  • 打赏
  • 举报
回复
你是对的。但是为什么会这样?
steve_zp_ 2003-04-15
  • 打赏
  • 举报
回复
这段是ide生成的。
taoqingxue 2003-04-15
  • 打赏
  • 举报
回复
把ReportSource='<%# "C:\Inetpub\wwwroot\test7\CrystalReport1.rpt" %>'>
改为ReportSource='<%# "C:\\Inetpub\\wwwroot\\test7\\CrystalReport1.rpt" %>'>
试试。

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧