using (SqlCommand cmd = new SqlCommand("insertTrusteeInfoSP", con)) { cmd.CommandType = CommandType.StoredProcedure; //cmd.Parameters.AddWithValue("@TrusteeInformationId", Convert.ToInt32(txtEmployeeId.Text)); cmd.Parameters.AddWithValue("@EmployeeReferenceId", txtlinemanager.Text); cmd.Parameters.AddWithValue("@TrusteeName", txtTrusteeName.Text.); //cmd.Parameters.AddWithValue("@TrustInformationId", Session["TrustInformationId"].ToString()); // cmd.Parameters.AddWithValue("@TrustInformationId", Session["TrustInformation"].ToString()); if (chkIsDefaultSign.Checked) { cmd.Parameters.AddWithValue("@IsDefaultSignatory", true); } else { cmd.Parameters.AddWithValue("@IsDefaultSignatory", false); } if (CheckIsActive.Checked) { cmd.Parameters.AddWithValue("@IsActive", true); } else { cmd.Parameters.AddWithValue("@IsActive", false); } cmd.Parameters.AddWithValue("@Description", txtdescription.Text); con.Open(); result = cmd.ExecuteNonQuery(); con.Close();
<script type="text/javascript"> function OpenPopup(showPopupFor) { var popupGenerator = null; var trusteeName = null; popupGenerator = document.getElementById("<%= txtlinemanager.ClientID %>"); trusteeName = document.getElementById("<%= txtTrusteeName.ClientID %>"); if (popupGenerator == null) return false; var url = employeesearch.aspx"; var params = new Array(popupGenerator.Value); var popupSetting = "center:yes;scroll:no;edge=raised;status:no;resizable:no;dialogWidth:400px;dialogHeight:415px"; var prevReturnValue = window.returnValue; window.returnValue = undefined; var pmx = window.showModalDialog(url, params, popupSetting); if (pmx == undefined) { pmx = window.returnValue; } window.returnValue = prevReturnValue; if (pmx == undefined || pmx == null) { popupGenerator.value = ""; } else { // popupGenerator.value = pmx.toString(); popupGenerator.value = pmx[0].toString(); trusteeName.value = pmx[1].toString(); } //popupGenerator.focus(); return false; } </script>
function OpenPopup(showPopupFor) {<br />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)