使用raido按钮我想向用户显示报告
问题描述:
我做了两份报告。
首次报告名称是教师和课程明智报告。
第二个报告名称是全部课程明智的报告。
i有两个单选按钮。
当我点击第一个单选按钮,我想显示教师和课程明智的报告。
当我点击第二个单选按钮时,我想显示所有课程明智的报告。 b $ b
如何使用单选按钮向用户显示报告。
它是基于Windows的应用程序在c#.net。
i have done a two reports.
first report name is Faculty and Course wise Report.
Second report name is All Course wise Report.
i have two radio button.
when i click the first radio button i want to show the Faculty and Course wise Report.
when i click the second radio button i want to show the All Course wise Report.
how can i do using radio button to show the report to the user.
it is windows based application in c# .net.
答
只需使用每个复选框中的CheckChanged事件来运行打开报告的代码。它看起来像这样:
Just use the CheckChanged event from each checkbox to run code that opens the report. It will look something like this:
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton1.Checked)
{
//code to open report
}
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton2.Checked)
{
//code to open report
}
}
不要忘记将相关的html代码放在.aspx页面上。
Don''t forget to put the associated html code on your .aspx page.