protected void btnApprove_Click(object sender, EventArgs e) { string value = getString(); _FacultyMaster _obj = new _FacultyMaster(); if (value == "0") { _obj.Name = value; } else { _obj.Name = value; } _obj.Update(); btnGet_Click(null, null); }