Beispiel #1
0
    protected void StateBind()
    {
        List <WMAccountState> list = WMAccountState.GetList();

        StateList.DataSource = list;
        StateList.DataBind();
    }
Beispiel #2
0
    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);
            }
        }
    }