Default.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:2k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="web_123_Default" %>
  2. <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
  3.     Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7.     <title>无标题页</title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.         &nbsp;
  13.         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  14.         <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
  15.         <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
  16.             Height="400px" Width="650px" BackColor="PowderBlue" BorderColor="LightCyan" BorderStyle="Groove" DocumentMapCollapsed="True" DocumentMapWidth="100%" ExportContentDisposition="AlwaysInline" PromptAreaCollapsed="True" ToolBarItemBorderColor="Red" ToolBarItemHoverBackColor="Green" ToolBarItemPressedBorderColor="0, 64, 0" ToolBarItemPressedBorderWidth="10px" ToolBarItemPressedHoverBackColor="Fuchsia" ZoomMode="PageWidth">
  17.             <LocalReport ReportPath="web123Report1.rdlc">
  18.                 <DataSources>
  19.                     <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="Customer" />
  20.                 </DataSources>
  21.             </LocalReport>
  22.         </rsweb:ReportViewer>
  23.         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCustomersForCountry"
  24.             TypeName="Customer">
  25.             <SelectParameters>
  26.                 <asp:ControlParameter ControlID="TextBox1" DefaultValue="2009-02-10" Name="data"
  27.                     PropertyName="Text" Type="String" />
  28.             </SelectParameters>
  29.         </asp:ObjectDataSource>
  30.         &nbsp;
  31.     
  32.     </div>
  33.     </form>
  34. </body>
  35. </html>