Esempio n. 1
0
        public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            base.DataBind();
            string v = EditUpdateButton.DataBindValue(this);

            if (MakeDefault0)
            {
                SelectedValue = v == "" ? "0" : v;
            }
            else
            {
                SelectedValue = v;
            }
            if (AssociatedRowId.HasValue())
            {
                var tr = this.Parent.Parent as HtmlTableRow;
                if (tr != null && tr.ID == AssociatedRowId)
                {
                    tr.Visible = v.HasValue() || Editing;
                }
            }
        }
        public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            //base.DataBind();
            switch (MaskType)
            {
            case MaskTypes.Phone:
                Text = EditUpdateButton.DataBindValue(this).FmtFone();
                break;

            case MaskTypes.Zip:
                Text = EditUpdateButton.DataBindValue(this).FmtZip();
                break;
            }
            if (AssociatedRowId.HasValue())
            {
                var tr = this.Parent.Parent as HtmlTableRow;
                if (tr != null && tr.ID == AssociatedRowId)
                {
                    tr.Visible = Text.HasValue() || Editing;
                }
            }
        }
Esempio n. 3
0
        public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            //base.DataBind();
            bool ck;

            if (!bool.TryParse(EditUpdateButton.DataBindValue(this), out ck))
            {
                ck = false;
            }
            Checked = ck;
        }
Esempio n. 4
0
 public override void DataBind()
 {
     if (EditUpdateButton.Updating)
     {
         EditUpdateButton.UpdateBinding(this);
     }
     //base.DataBind();
     SetTextValue(EditUpdateButton.DataBindValue(this));
     if (AssociatedRowId.HasValue())
     {
         var tr = this.Parent.Parent as HtmlTableRow;
         if (tr != null && tr.ID == AssociatedRowId)
         {
             tr.Visible = Text.HasValue() || Editing;
         }
     }
 }