Beispiel #1
0
        protected void cmdSearch_Click(object sender, EventArgs e)
        {
            if (lstPositions.SelectedItem == null)
            {
                return;
            }
            PosSelected = ConvertUtility.ToInt32(lstPositions.SelectedValue);
            string location = string.Empty;

            foreach (ListItem item in lstZones.Items)
            {
                if (item.Selected)
                {
                    location += item.Value + "|";
                }
            }
            DataTable source = AdvertiseDB.GetByPositionID(PosSelected, chkEnable.Checked, location);

            dtgAdvertises.DataSource = source;
            dtgAdvertises.DataBind();
        }