有关ASP.NET中C#语言的编程问题,请指点(100分)

Y

yzp

Unregistered / Unconfirmed
GUEST, unregistred user!
1.我在本级目录下,要输出WebForm1.aspx,WebForm2.aspx和WebForm3.aspx窗口,分别的代码是:
Response.Redirect("~/WebForm1.aspx");
Response.Redirect("~/WebForm2.aspx");
Response.Redirect("~/WebForm3.aspx");
如何用C#实现在点一个按钮时,同时输出此三个窗口,并可对这三个窗口的高、宽、TOP和左起点做设置?
我用了Response.Write(&quot;<script language='javascript'>windown.open(.........);</script >&quot;);来输出,javascript代码如下:
Response.Write(&quot;<script language='javascript'>windown.open('~/WebForm1.aspx', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no');</script >&quot;);
点此按钮后,并没有输出此窗口,请问为什么?如何修改?
2.有关ASP.NET中水晶报表的使用问题,请高手指点!
我用如下的代码可以实现水晶报表的显示和打印
<cr:CrystalReportViewer id=CrystalReportViewer1 style=&quot;Z-INDEX: 101;
LEFT: 16px;
POSITION: absolute;
TOP: 16px&quot;
runat=&quot;server&quot;
ReportSource='<%# &quot;D://HIS//HIS//baobiao//xukezheng.rpt&quot;%>' ReuseParameterValuesOnRefresh=&quot;False&quot;
Height=&quot;50px&quot;
Width=&quot;350px&quot;
AutoDataBind=&quot;True&quot;
PrintMode=&quot;ActiveX&quot;>
</cr:CrystalReportViewer>
打印按钮bt_print的代码如下:
Response.Redirect(&quot;~/xukezheng_print.aspx&quot;);
数据表格dgCheckBox的选择复选框代码:
<asp:TemplateColumn>
<ItemTemplate>
<input type=&quot;hidden&quot;
id=&quot;SelectedID&quot;
runat=&quot;server&quot;
value='<%# Container.ItemIndex%>' NAME=&quot;SelectedID&quot;/>
<asp:CheckBox ID=&quot;chkExport&quot;
Runat=&quot;server&quot;
/>
</ItemTemplate>
</asp:TemplateColumn>
请问如何修改代码可实现按数据表格dgCheckBox所选择的行输出打印内容?
 

Similar threads

I
回复
0
查看
467
import
I
I
回复
0
查看
716
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部