protected void btnsubmit_Click(object sender, EventArgs e) { string[] svals = hfdorderid.Value.Split(','); foreach (string t in svals) { Utilities_Licensing.processrenewal2018(t, ddlrenewalstatus.SelectedValue, txtrenewaldate.Text, txtcomments.Text, Session["UID"].ToString()); } altbox("Record inserted successfully."); }