protected void btnInsert_Click(object sender, EventArgs e) { //try //{ string app_id = ddlApp.SelectedValue; string path = txtPath.Text; PathClass path_obj = new PathClass(); string result = path_obj.CreatePath(app_id, path); if (result != "") { Response.Write("<script>alert('Insert thành công.');window.location.href='" + view_ctrl + "';</script>"); Response.End(); } else { Response.Write("<script>alert('Insert không thành công.');window.location.href='" + add_ctrl + "';</script>"); Response.End(); } //} //catch (Exception ex) { ex.ToString(); } }