Click here to Skip to main content
12,355,334 members (37,516 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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.
Posted 21-Jan-13 1:38am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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            
            }
        }

Don't forget to put the associated html code on your .aspx page.
  Permalink  
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100