protected void btnAdd_Click(Object Sender, EventArgs e) { int intReport = Int32.Parse(lblId.Text); if (ddlAvailable.SelectedIndex > 0) { oReport.AddApplication(intReport, Int32.Parse(ddlAvailable.SelectedItem.Value)); Response.Redirect(Request.Path + "?id=" + intReport.ToString() + "&save=true"); } else { Response.Redirect(Request.Path + "?id=" + intReport.ToString()); } }