I want to use a click button to go to next page, and display the detail info of the person i select. but this code wont work. help help!
void ButtonHandler(Object sender, EventArgs e)
{
Button ViewReports = (Button)sender;
switch (ViewReports.CommandName)
{
case "ViewReportsClick":
Response.Redirect(ViewReports.CommandArgument.ToString());
break;
case "ViewRemunerationClick":
Response.Redirect(ViewRemuneration.CommandArgument.ToString());
break;
case "ViewPerformanceClick":
Response.Redirect(ViewPerformance.CommandArgument.ToString());
break;
}
}