使用raido按钮我想向用户显示报告 [英] using raido button i want to show the report to the user

查看:116
本文介绍了使用raido按钮我想向用户显示报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了两份报告。



首次报告名称是教师和课程明智报告。



第二个报告名称是全部课程明智的报告。



i有两个单选按钮。



当我点击第一个单选按钮,我想显示教师和课程明智的报告。



当我点击第二个单选按钮时,我想显示所有课程明智的报告。< br $> 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.


这篇关于使用raido按钮我想向用户显示报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆