protected void StateBind() { List <WMAccountState> list = WMAccountState.GetList(); StateList.DataSource = list; StateList.DataBind(); }
protected void StateBind() { List <WMAccountState> list = WMAccountState.GetList(); if (!General.IsNullable(list)) { UserState.Items.Clear(); foreach (var state in list) { ListItem item = new ListItem(); item.Text = state.StateName; item.Value = state.StateId.ToString(); UserState.Items.Add(item); } } }