Click here to Skip to main content
15,891,136 members

Response to: Multiuser problem in Asp.net

Revision 1
Why can't you use "Rdbtn.SelectedValue" directly in the ViewReport() routine.

C#
if (Rdbtn.SelectedValue == "1")
{
    crystalReport.Load(Server.MapPath("sample1.rpt"));
}
else if (Rdbtn.SelectedValue == "2")
{
    crystalReport.Load(Server.MapPath("sample2.rpt"));
}


Then another thing we can so is using switch Case; which is better way to increase the performance.
Posted 4-Nov-12 23:01pm by Baji Jabbar.
Tags: , ,