/// <summary> /// get the Grid value into textBox /// </summary> private void GetOCCUPATIONDetails() { OccupationBLL OccupationBLLobj = new OccupationBLL(); int OCCUPATIONID = 0; if (ViewState["OCCUPATIONID"] != null) { OCCUPATIONID = Convert.ToInt32(ViewState["OCCUPATIONID"]); } OccupationBO OccupationObj = new OccupationBO(); OccupationObj = OccupationBLLobj.GetOccupationId(OCCUPATIONID); MainOccupationTextBox.Text = OccupationObj.OCCUPATIONNAME; MainOccupationIDTextBox.Text = OccupationObj.OCCUPATIONID.ToString(); //int ConcernID_test = Convert.ToInt32(ConcernObj.ConcernID); }