protected void btnSave_Click(Object Sender, EventArgs e) { string strOrder = Request.Form[hdnOrder.UniqueID]; oAudit.DeleteScriptSetDetail(intParent); int intDisplay = 0; while (strOrder != "") { intDisplay++; int intId = Int32.Parse(strOrder.Substring(0, strOrder.IndexOf("&"))); strOrder = strOrder.Substring(strOrder.IndexOf("&") + 1); oAudit.AddScriptSetDetail(intParent, intId, intDisplay); } Response.Redirect(Request.Path + "?parent=" + intParent.ToString()); }