private void BindYear() { ddlYear.SelectedValue = null; for (int i = 2017; i <= DateTime.Now.Year; i++) { ddlYear.Items.Add(i.ToString()); } ddlYear.SelectedValue = DateTime.Now.Year; }
private void btnSubmit_Click(object sender, EventArgs e) { string Result = string.Empty; if (ddlYear.SelectedText != "") { return; } if (String.IsNullOrEmpty(txtBarcode.Text)) { return; } try { objBO.QueryType = "Insert"; objBO.UniqueId = "0"; objBO.BarcodeNo = txtBarcode.Text.Trim(); objBO.Year = ValidateClass.ConvDMYTOYMD(ddlYear.SelectedValue.ToString()); objBO.CalibratCertificate = txtCalibration.Text; objBO.CreatedBy = userName; objBO.TransactionFlag = "N"; Result = objBAL.CalibrationCertificate(objBO);
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)