Posted on: 5/12/2014 8:07:46 PM | Views : 419

Hi,
Inmy application have radiobuttonlist and button
EFI
Phase3
Generate ReportsBtn
If  user  selects EFI or Phase3 and click on Generate reports it goes to reports.aspx it works fine . If user dont want to select any type just clciks on generate reports  it  redirects to EFIPhAsereports.aspx It show  null exception .Below is the code for this
protected void btnreports_Click(object sender, EventArgs e) { if (rblTypes.SelectedItem.Text == "EFI")//exception { Response.Redirect("ScheduleTasksReports.aspx"); } if (rblTypes.SelectedItem.Text == "Phase3") { Response.Redirect("ScheduleTasksPhase3Reports.aspx"); } if (rblTypes.SelectedItem.Text == null) { Response.Redirect("EFIPhase3Reports.aspx"); ...

Go to the complete details ...