void GetRoleDetails() { DataSet ds = new DataSet(); try { ds = objBALUser.GetRoleMaster(0); if (ds.Tables.Count > 0) { dropUserType.DataSource = ds.Tables[0]; dropUserType.DataTextField = "role_desc"; dropUserType.DataValueField = "role_id"; dropUserType.DataBind(); } dropUserType.Items.Insert(0, new ListItem("-Select-", "0")); } catch (Exception ex) { } }