protected void btnSave_Click(object sender, EventArgs e) { string txtName = this.txtName.Text.Trim().Replace("'", "''"); string txtOrder = this.txtOrder.Text.Trim(); int sort; int.TryParse(txtOrder, out sort); QJVRMS.Business.KeyWords obj = new QJVRMS.Business.KeyWords(); obj.Add(0, txtName, sort); bindCatalog(); }
protected void btnSave_Click(object sender, EventArgs e) { string txtName = this.txtName.Text.Trim().Replace("'", "''"); //string txtOrder = this.txtOrder.Text.Trim(); int sort = 1; //int.TryParse(txtOrder, out sort); int parentId = Convert.ToInt32(this.hId.Value); QJVRMS.Business.KeyWords obj = new QJVRMS.Business.KeyWords(); obj.Add(parentId, txtName, sort); bind(); }
protected void btnSave_Click(object sender, EventArgs e) { string txtName = this.txtName.Text.Trim().Replace("'", "''"); //string txtOrder = this.txtOrder.Text.Trim(); int sort=1; //int.TryParse(txtOrder, out sort); int parentId = Convert.ToInt32(this.hId.Value); QJVRMS.Business.KeyWords obj = new QJVRMS.Business.KeyWords(); obj.Add(parentId, txtName, sort); bind(); }