protected void lnkAddNew_Click(object s, EventArgs e) { HiddenFlag.Value = "Add"; OperationMode = "Add Maker"; this.SetFocus("ctl00_MainContent_txtMakerName_AV"); txtAddress_AV.Text = ""; txtCreationDate_AV.Text = ""; txtEmail_AV.Text = ""; txtFax_AV.Text = ""; txtMakerCode_AV.Text = ""; txtMakerName_AV.Text = ""; txtPhone_AV.Text = ""; BLL_Infra_Supplier objSupp = new BLL_Infra_Supplier(); txtMakerCode_AV.Text = objSupp.Get_Next_MakerCode(); string AddMaker = String.Format("showModal('divadd',false);"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "AddMaker", AddMaker, true); }
public void NextMakerCode() { BLL_Infra_Supplier objSupp = new BLL_Infra_Supplier(); txtMakerCode_AV.Text = objSupp.Get_Next_MakerCode(); }