public void DeptCode() { string st = Convert.ToString(cc.EQSScaler("select [dbo].[get_Max_DEPT_CODE]();")); lblDepartmentCode.Text = st; }