C# VS报告-报告查看器不能与ASP:Panel一起使用
我对使用VS reports是完全陌生的,但是我在创建RDLC和报表查看器的过程中遇到了麻烦 我的问题是,我已经在RDLC页面中设置了使用SP数据源的报告,但只要我将控件放入面板中,以便打开和关闭可见性,控件就会停止显示 在失败页面的源代码中,我可以看到C# VS报告-报告查看器不能与ASP:Panel一起使用,c#,asp.net,ajax,reportviewer,C#,Asp.net,Ajax,Reportviewer,我对使用VS reports是完全陌生的,但是我在创建RDLC和报表查看器的过程中遇到了麻烦 我的问题是,我已经在RDLC页面中设置了使用SP数据源的报告,但只要我将控件放入面板中,以便打开和关闭可见性,控件就会停止显示 在失败页面的源代码中,我可以看到 <script type="text/javascript"> //<![CDATA[ if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client side framework failed to load.');
//]]>
</script>
我不明白为什么在一个面板里会把控制搞砸
啊
这是密码
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Panel runat="server" ID="ReportHeaders" Visible="true">
<h2>Driver Lateness Report</h2><br />
<h3>Set Parameters</h3>
<br />
<br />
<center>
<asp:RadioButtonList ID="rbl_datechoice" runat="server">
<asp:ListItem Text="Yesterday"></asp:ListItem>
<asp:ListItem Text="Today"></asp:ListItem>
<asp:ListItem Text="DateRange" Enabled="false"></asp:ListItem>
</asp:RadioButtonList>
<br />
Select Site :-   <asp:DropDownList runat="server"></asp:DropDownList>
<br />
<br />
<asp:Button ID="btn_Run_Report" runat="server" OnClick="Btn_Run_Report_Click" Text="Run Report" /></center>
</asp:Panel>
<asp:Panel ID="ReportDetails" runat="server" Visible="false">
<table><tr><td>
<rsweb:ReportViewer ID="Rpt_Report" runat="server" Font-Names="Verdana"
Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
EnableTheming="True" ShowToolBar="False" ShowWaitControlCancelLink="False"
ShowZoomControl="False" style="margin-right: 0px" Width="917px">
<LocalReport ReportPath="Reports\Late\Lateness.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="SqlDataSource1" Name="DataSet1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<div style="min-height:100px"/>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:CNS %>" SelectCommand="Rep_Lateness"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="siteid" Type="Int32" DefaultValue="1" />
<asp:Parameter Name="date" Type="String" DefaultValue="12-12-2014" />
</SelectParameters>
</asp:SqlDataSource>
</td></tr></table>
</asp:Panel>
</asp:Content>
一旦我开始工作,我就可以让参数在后台代码中正确地传递到SP中
有人有什么想法吗?如果有人遇到这个问题,我找不到答案,所以唯一的解决办法是有两个单独的页面,一个用于参数,另一个用于报告