求高人指点,打印的问题?
想把录入在<table>内表单的内容在进入数据的同时打印出来,如何实施,请高人指点。部分代码如下:
准备把<table>内的内容打印。
<body style="background-color: #ffffff">
<form id="form1" runat="server">
<div style="text-align: center">
<span style="font-size: 14pt"><strong>收费管理</strong></span><br />
<table border=1>
<tr>
<td colspan="2" style="width: 846px; height: 11px">
IC卡号 <asp:TextBox ID="TextBox1" runat="server" Width="86px" AutoPostBack="true" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
<asp:Label ID="Label2" runat="server" ForeColor="red" ></asp:Label>车号<asp:TextBox ID="TextBox2" runat="server" Width="69px" ></asp:TextBox>
驾校<asp:TextBox ID="TextBox9" runat="server" Width="87px"></asp:TextBox>
<asp:DropDownList ID="DropDownList1" runat="server" DataTextField="school_name" DataValueField="school_name" Width="104px">
</asp:DropDownList>
项目<asp:TextBox ID="TextBox10" runat="server" ReadOnly="True" Width="121px"></asp:TextBox>
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" DataTextField="project_name" DataValueField="project_funds" Width="122px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
</asp:DropDownList>价格<asp:TextBox ID="TextBox3" runat="server" Width="35px" AutoPostBack="True" ReadOnly="True"></asp:TextBox>元/小时</td>
<td rowspan="1" style="width: 59px">
</td>
</tr>
<tr>
<td colspan="2" style="width: 846px; height: 11px">
开始时间<asp:TextBox ID="TextBox5" runat="server" Width="117px" ReadOnly="True"></asp:TextBox>
结束结束<asp:TextBox ID="TextBox4" runat="server" Width="111px" ReadOnly="True"></asp:TextBox>
预用时<asp:TextBox
ID="TextBox12" runat="server"
Width="23px" AutoPostBack="True" OnTextChanged="TextBox12_TextChanged"></asp:TextBox>
<asp:Label ID="Label1" runat="server"></asp:Label>
小时 押金<asp:TextBox
ID="TextBox13" runat="server" Width="45px" ></asp:TextBox>元
<asp:Label ID="Label3" runat="server" BackColor="#C00000" BorderColor="White" Text="退押金"></asp:Label><asp:TextBox
ID="TextBox14" runat="server" Width="41px"></asp:TextBox></td>
<td style="width: 59px" rowspan="2">
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="确定" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="增加" /></td></tr><tr>
<td colspan="2" style="width: 846px; height: 28px;">
实际用时<asp:TextBox ID="TextBox6" runat="server" Width="131px" ReadOnly="True"></asp:TextBox>
费用<asp:TextBox
ID="TextBox7" runat="server" Width="89px"></asp:TextBox>元 实际收费<asp:TextBox ID="TextBox8"
runat="server" Width="85px"></asp:TextBox>
元 收费人<asp:TextBox ID="TextBox11" runat="server"
Width="103px"></asp:TextBox></td>
</tr></table>
<asp:GridView ID="GridView1" runat="server"
加入按钮后如何实施代码编写。
急啊