Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ComboCurrency.SetValidation(ValidationGroup);
         foreach (Currency c in Currency.Currencies)
         {
             ComboCurrency.Items.Add(c.Code, c.Code);
         }
         ComboCurrency.SelectedIndex = 0;
     }
 }
Пример #2
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     if (!Page.IsCallback)
     {
         InitializeControls();
     }
     if (!IsPostBack)
     {
         txtAmount.SetValidation(ValidationGroup);
         ComboCurrency.SetValidation(ValidationGroup);
     }
 }