Пример #1
0
        private void BindDataSort()
        {
            AdSort adsort = new AdSort();

            DataListAdSort.DataSource = adsort.GetList("");
            DataListAdSort.DataBind();
        }
Пример #2
0
        private void BindDataSort(string sid)
        {
            AdSort adsort = new AdSort();

            ddSort.DataSource     = adsort.GetList("");
            ddSort.DataValueField = "id";
            ddSort.DataTextField  = "sortname";
            ddSort.DataBind();

            try
            {
                ddSort.Items.FindByValue(sid).Selected = true;
            }
            catch { }
        }