Esempio n. 1
0
        protected void drpAlertItem_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (this.drpAlertItem.SelectedValue == "*")
            {
                this.stbItem.Enabled = false;
            }
            else
            {
                this.stbItem.Enabled = true;
            }

            AlertItemValueHelper.SetItemValue(this.stbItem, this.drpAlertType.SelectedValue, this.drpAlertItem.SelectedValue);
        }
Esempio n. 2
0
 protected void drpAlertItem_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     AlertItemValueHelper.SetItemValue(this.stbItem, this.drpAlertType.SelectedValue, this.drpAlertItem.SelectedValue);
     if (this.drpAlertItem.SelectedValue == "*")
     {
         this.stbItem.Enabled = false;
         gridWebGrid.Bands[0].Columns.FromKey("AlertItemValue").HeaderText = lblAlertItemCodeQuery.Text;
     }
     else
     {
         gridWebGrid.Bands[0].Columns.FromKey("AlertItemValue").HeaderText = drpAlertItem.SelectedItem.Text;
         this.stbItem.Enabled = true;
     }
 }