Ejemplo n.º 1
0
        protected void Label_PreRender(object sender, EventArgs e)
        {
            Label                    label          = (Label)sender;
            DynamicControl           dynamicControl = (DynamicControl)label.FindControl("DynamicControl");
            FieldTemplateUserControl ftuc           = dynamicControl.FieldTemplate as FieldTemplateUserControl;

            if (ftuc != null && ftuc.DataControl != null)
            {
                label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label);
            }
        }
Ejemplo n.º 2
0
        protected void Label_PreRender(object sender, EventArgs e)
        {
            Label         label            = (Label)sender;
            DynamicFilter dynamicFilter    = (DynamicFilter)label.FindControl("DynamicFilter");
            QueryableFilterUserControl fuc = dynamicFilter.FilterTemplate as QueryableFilterUserControl;

            if (fuc != null && fuc.FilterControl != null)
            {
                label.AssociatedControlID = fuc.FilterControl.GetUniqueIDRelativeTo(label);
            }
        }