void ControlTreeDataLoader.LoadData()
        {
            FormState.ExecuteWithDataModificationsAndDefaultAction(
                dataModifications,
                () => {
                if (TagKey == HtmlTextWriterTag.Button)
                {
                    Attributes.Add("name", EwfPage.ButtonElementName);
                    Attributes.Add("value", "v");
                    Attributes.Add("type", usesSubmitBehavior ? "submit" : "button");
                }

                FormAction action = postBackAction;
                action.AddToPageIfNecessary();

                if (ConfirmationWindowContentControl != null)
                {
                    if (usesSubmitBehavior)
                    {
                        throw new ApplicationException("PostBackButton cannot be the submit button and also have a confirmation message.");
                    }
                    confirmationWindow = new ModalWindow(this, ConfirmationWindowContentControl, title: "Confirmation", postBack: postBackAction.PostBack);
                }
                else if (!usesSubmitBehavior)
                {
                    PreRender += delegate { this.AddJavaScriptEventScript(JsWritingMethods.onclick, action.GetJsStatements() + " return false"); }
                }
                ;

                CssClass = CssClass.ConcatenateWithSpace("ewfClickable");
                ActionControlStyle.SetUpControl(this, "");
            });
        }
Beispiel #2
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (!CssClass.Contains("sizable"))
            {
                CssClass += " sizable";
            }

            if (MaxLength > 0)
            {
                if (!Page.ClientScript.IsClientScriptBlockRegistered("TextAreaRestrictText"))
                {
                    StringBuilder script = new StringBuilder();

                    script.AppendLine("function SetCaretToEnd(input) { if (input.createTextRange){ var range = input.createTextRange();range.collapse(false);range.select();}}");
                    script.AppendLine("function RestrictText(o, max) { if (o.value.length > max) { alert('You can only enter a maximum of ' + max + ' characters in this textbox.'); o.value = o.value.substring(0, max); SetCaretToEnd(o);}}");

                    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "TextAreaRestrictText", script.ToString(), true);
                }

                Attributes["onkeyup"] = string.Format("RestrictText(this, {0})", MaxLength);
            }

            //remove angular brackets at client-side to prevent RequestValidation failure
            if (EmailsOnly)
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "TextAreaEmailsOnly", @"function ParseEmails(o) {var vals=o.value.match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/gi);o.value='';for(i=0;i<vals.length;i++){o.value += vals[i] + ';';}}", true);
                Attributes["onblur"] = "ParseEmails(this)";
            }
        }
        void ControlTreeDataLoader.LoadData()
        {
            FormState.ExecuteWithDataModificationsAndDefaultAction(
                dataModifications,
                () => {
                CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);

                textBox = new EwfTextBox(
                    value.HasValue ? value.Value.ToMonthDayYearString() + " " + value.Value.ToHourAndMinuteString() : "",
                    disableBrowserAutoComplete: true,
                    autoPostBack: autoPostBack);
                Controls.Add(new ControlLine(textBox, getIconButton()));

                min = DateTime.MinValue;
                max = DateTime.MaxValue;
                if (constrainToSqlSmallDateTimeRange)
                {
                    min = Validator.SqlSmallDateTimeMinValue;
                    max = Validator.SqlSmallDateTimeMaxValue;
                }
                if (minDate.HasValue && minDate.Value > min)
                {
                    min = minDate.Value;
                }
                if (maxDate.HasValue && maxDate.Value < max)
                {
                    max = maxDate.Value;
                }

                if (ToolTip != null || ToolTipControl != null)
                {
                    new ToolTip(ToolTipControl ?? EnterpriseWebFramework.Controls.ToolTip.GetToolTipTextControl(ToolTip), this);
                }
            });
        }
Beispiel #4
0
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Style, "margin: 0 0 0 0;");

            if (CssClass.IsNotEmpty())
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Class, CssClass);
            }

            writer.RenderBeginTag("div");



            RenderRightBlock(writer);

            writer.AddAttribute(HtmlTextWriterAttribute.Class, Type == RoundedButtonType.Orange ? "orbtnctd" : Type == RoundedButtonType.GrayBig ? "rbtnctd_big" : "rbtnctd");

            writer.RenderBeginTag("div");

            writer.AddAttribute(HtmlTextWriterAttribute.Class,
                                Type == RoundedButtonType.Orange ? "orbtninput" : Type == RoundedButtonType.GrayBig ? "rbtninput_big" : "rbtninput");

            base.Render(writer);

            writer.RenderEndTag();

            RenderLeftBlock(writer);

            writer.RenderEndTag();
        }
        protected override void OnPreRender(EventArgs e)
        {
            string tinyMceIncludeKey    = "TinyMCEInclude";
            string tinyMceIncludeScript = "<script type=\"text/javascript\" src=\"/tinymce/jscripts/tiny_mce/tiny_mce.js\"></script>";

            if (!Page.ClientScript.IsStartupScriptRegistered(tinyMceIncludeKey))
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), tinyMceIncludeKey, tinyMceIncludeScript);
            }

            if (!Page.ClientScript.IsStartupScriptRegistered(GetInitKey()))
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), GetInitKey(), GetInitScript());
            }

            if (!CssClass.Contains(GetEditorClass())) //probably this is not the best way how to add the css class but I do not know any beter way
            {
                if (CssClass.Length > 0)
                {
                    CssClass += " ";
                }
                CssClass += GetEditorClass();
            }
            base.OnPreRender(e);
        }
Beispiel #6
0
        void ControlTreeDataLoader.LoadData()
        {
            if (TagKey == HtmlTextWriterTag.Button)
            {
                Attributes.Add("name", EwfPage.ButtonElementName);
                Attributes.Add("value", "v");
                Attributes.Add("type", usesSubmitBehavior ? "submit" : "button");
            }

            EwfPage.Instance.AddPostBack(postBack);

            if (ConfirmationWindowContentControl != null)
            {
                if (usesSubmitBehavior)
                {
                    throw new ApplicationException("PostBackButton cannot be the submit button and also have a confirmation message.");
                }
                confirmationWindow = new ModalWindow(ConfirmationWindowContentControl, title: "Confirmation", postBack: postBack);
            }
            else if (!usesSubmitBehavior)
            {
                PreRender += delegate { this.AddJavaScriptEventScript(JsWritingMethods.onclick, GetPostBackScript(postBack)); }
            }
            ;

            CssClass = CssClass.ConcatenateWithSpace("ewfClickable");
            ActionControlStyle.SetUpControl(this, "", width, height, setWidth);
        }
Beispiel #7
0
        void ControlTreeDataLoader.LoadData()
        {
            CssClass = CssClass.ConcatenateWithSpace(CheckBoxListCssElementCreator.CssClass);

            var table = new DynamicTable {
                Caption = caption
            };

            if (includeSelectAndDeselectAllButtons)
            {
                table.AddActionLink(new ActionButtonSetup("Select All", new CustomButton(() => string.Format(@"toggleCheckBoxes( '{0}', true )", ClientID))));
                table.AddActionLink(new ActionButtonSetup("Deselect All", new CustomButton(() => string.Format(@"toggleCheckBoxes( '{0}', false )", ClientID))));
            }

            var itemsPerColumn = (int)Math.Ceiling((decimal)items.Count() / numberOfColumns);
            var cells          = new List <EwfTableCell>();

            for (byte i = 0; i < numberOfColumns; i += 1)
            {
                var maxIndex = Math.Min((i + 1) * itemsPerColumn, items.Count());
                var place    = new PlaceHolder();
                for (var j = i * itemsPerColumn; j < maxIndex; j += 1)
                {
                    var item     = items.ElementAt(j);
                    var checkBox = new BlockCheckBox(selectedItemIds.Contains(item.Id), label: item.Label, highlightWhenChecked: true, postBack: postBack);
                    place.Controls.Add(checkBox);
                    checkBoxesByItem.Add(item, checkBox);
                }
                cells.Add(place);
            }
            table.AddRow(cells.ToArray());
            Controls.Add(table);
        }
 public IHtmlString MyTextBoxFor <TModel, TProperty>(
     this HtmlHelper <TModel> html,
     Expression <Func <TModel, TProperty> > propertyExpression,
     CssClass cssClass)
 {
     // ...
 }
Beispiel #9
0
        void ControlTreeDataLoader.LoadData()
        {
            EwfPage.Instance.AddDisplayLink(this);

            // NOTE: Currently this hidden field will always be persisted in page state whether the page cares about that or not. We should put this decision into the
            // hands of the page, maybe by making ToggleButton sort of like a form control such that it takes a boolean value in its constructor and allows access to
            // its post back value.
            var controlsToggled = false;

            EwfHiddenField.Create(
                this,
                EwfPage.Instance.PageState.GetValue(this, pageStateKey, false).ToString(),
                postBackValue => controlsToggled = getControlsToggled(postBackValue),
                EwfPage.Instance.DataUpdate,
                out controlsToggledHiddenFieldValueGetter,
                out controlsToggledHiddenFieldClientIdGetter);
            EwfPage.Instance.DataUpdate.AddModificationMethod(
                () => AppRequestState.AddNonTransactionalModificationMethod(() => EwfPage.Instance.PageState.SetValue(this, pageStateKey, controlsToggled)));

            if (TagKey == HtmlTextWriterTag.Button)
            {
                PostBackButton.AddButtonAttributes(this);
            }
            this.AddJavaScriptEventScript(JsWritingMethods.onclick, handlerName + "()");
            CssClass    = CssClass.ConcatenateWithSpace("ewfClickable");
            textControl = ActionControlStyle.SetUpControl(this, "", width, height, w => base.Width = w);
        }
Beispiel #10
0
        protected override void OnPreRender(EventArgs e)
        {
            string tinyMceIncludeKey    = "TinyMCEInclude";
            string tinyMceIncludeScript = "<script type=\"text/javascript\" src=\"" +
                                          ResolveUrl(_TinyMCEPath) + "\"></script>";


            if (!Page.ClientScript.IsStartupScriptRegistered(tinyMceIncludeKey))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), tinyMceIncludeKey, tinyMceIncludeScript);
            }

            if (!Page.ClientScript.IsStartupScriptRegistered(GetInitKey()))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), GetInitKey(), GetInitScript());
            }

            if (!CssClass.Contains(GetEditorClass()))
            {
                if (CssClass.Length > 0)
                {
                    CssClass += " ";
                }
                CssClass += GetEditorClass();
            }
            base.OnPreRender(e);
        }
Beispiel #11
0
 internal virtual void AddAttributes()
 {
     Attributes["id"]   = Id;
     Attributes["name"] = Name;
     if (!Enable)
     {
         Attributes["disabled"] = "disabled";
     }
     if (!CssClass.IsNullOrEmpty())
     {
         Attributes["class"] = CssClass;
     }
     if (!Validator.IsNullOrEmpty())
     {
         Attributes["validator"] = Validator;
     }
     if (!AttributeString.IsNullOrEmpty())
     {
         string[] kvs = AttributeString.Split(new char[] { ',', ';', '|' }, StringSplitOptions.RemoveEmptyEntries);
         foreach (var kv in kvs)
         {
             string[] keyValue = kv.Split(':');
             Attributes[keyValue[0]] = keyValue[1];
         }
     }
     if (ChangeTiggerSearch)
     {
         Attributes["data-autotigger"] = "true";
     }
 }
        void ControlTreeDataLoader.LoadData()
        {
            CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);

            if (minuteInterval < 30)
            {
                textBox = new EwfTextBox(value.HasValue ? value.Value.ToTimeOfDayHourAndMinuteString() : "", disableBrowserAutoComplete: true, autoPostBack: autoPostBack);
                Controls.Add(new ControlLine(textBox, getIconButton()));
            }
            else
            {
                var minuteValues = new List <int>();
                for (var i = 0; i < 60; i += minuteInterval)
                {
                    minuteValues.Add(i);
                }
                selectList = SelectList.CreateDropDown(
                    from hour in Enumerable.Range(0, 24)
                    from minute in minuteValues
                    let timeSpan = new TimeSpan(hour, minute, 0)
                                   select SelectListItem.Create <TimeSpan?>(timeSpan, timeSpan.ToTimeOfDayHourAndMinuteString()),
                    value,
                    width: Unit.Percentage(100),
                    placeholderIsValid: true,
                    placeholderText: "",
                    autoPostBack: autoPostBack);
                Controls.Add(selectList);
            }

            if (ToolTip != null || ToolTipControl != null)
            {
                new ToolTip(ToolTipControl ?? EnterpriseWebFramework.Controls.ToolTip.GetToolTipTextControl(ToolTip), this);
            }
        }
Beispiel #13
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            CssClass += " sn-toolbar";
            CssClass  = CssClass.Trim();
        }
Beispiel #14
0
        public void SimpleTest(string fullClassName, string expectedName, string expectedPascalCaseName)
        {
            CssClass cssClass = new CssClass(fullClassName);

            Assert.That(cssClass.Name, Is.EqualTo(expectedName));
            Assert.That(cssClass.PascalCaseName, Is.EqualTo(expectedPascalCaseName));
        }
 void ControlTreeDataLoader.LoadData()
 {
     CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);
     Controls.Add(new Literal {
         Text = html
     });
 }
Beispiel #16
0
        void ControlTreeDataLoader.LoadData()
        {
            CssClass = CssClass.ConcatenateWithSpace(!expanded.HasValue || expanded.Value ? expandedClass : closedClass);

            var contentBlock = new Block(childControls)
            {
                CssClass = headingAndContentClass
            };

            if (heading.Length > 0)
            {
                var headingControl = new Heading(heading.GetLiteralControl())
                {
                    Level = headingLevel, CssClass = headingAndContentClass, ExcludesBuiltInCssClass = true
                };
                this.AddControlsReturnThis(expanded.HasValue
                                                                ? new ToggleButton(this.ToSingleElementArray(),
                                                                                   new CustomActionControlStyle(
                                                                                       c =>
                                                                                       c.AddControlsReturnThis(new EwfLabel {
                    Text = "Click to Expand", CssClass = closedClass
                },
                                                                                                               new EwfLabel {
                    Text = "Click to Close", CssClass = expandedClass
                },
                                                                                                               headingControl)),
                                                                                   toggleClasses: new[] { closedClass, expandedClass }) as Control
                                                                : new Block(headingControl));
            }
            this.AddControlsReturnThis(contentBlock);
        }
Beispiel #17
0
        private void MockParagraphProps()
        {
            _pPr = new ParagraphProperties(new ParagraphStyleId {
                Val = "pStyleId"
            });
            _p = new Paragraph(_pPr);

            _rPr = new RunProperties();
            _r   = new Run(_rPr);
            _p.AppendChild(_r);
            _pCssClass = new CssClass {
                Name = "test1"
            };
            _rCssClass = new CssClass {
                Name = "test2"
            };
            _cssRegistrator
            .RegisterParagraph(Arg.Is <ParagraphClassParam>(param =>
                                                            param.InlineProperties == _pPr
                                                            ))
            .Returns(_pCssClass);
            _cssRegistrator
            .RegisterRun(Arg.Is <RunClassParam>(rParam =>
                                                rParam.InlineProperties == _rPr
                                                ))
            .Returns(_rCssClass);
            _elemState
            .GetContext(out ParagraphProperties _)
            .Returns(x => { x[0] = _pPr; return(true); });
        }
        public void ShouldBeEqualWhenTwoSameDefinedCssClasses()
        {
            var cssClass = new CssClass("Button")
                           .WithStyle(CssPropertyNames.Color, "green")
                           .WithStyle(CssPropertyNames.Margin, "20px")
                           .WithlStyleInPixelUnit(CssPropertyNames.PaddingLeft, 12)
                           .WithStyle(CssPropertyNames.PaddingBottom, 15, CssUnits.Em)
                           .WithStyle(CssPropertyNames.Border, NumberCssStyleValue.CreatePixelValue(5), TextCssStyleValue.CreateTextValue("dotted"))
                           .AddPseudoSelector(PseudoSelector.Hover, props => props
                                              .WithStyle(CssPropertyNames.Color, "red")
                                              .WithStyle(CssPropertyNames.Width, "20px"))
                           .AddMediaQuery("@media (min-width: 1024px)", props =>
                                          props.WithStyle(CssPropertyNames.Width, "50px"));

            var cssClass2 = new CssClass("Button")
                            .WithStyle(CssPropertyNames.Color, "green")
                            .WithStyle(CssPropertyNames.Margin, "20px")
                            .WithlStyleInPixelUnit(CssPropertyNames.PaddingLeft, 12)
                            .WithStyle(CssPropertyNames.PaddingBottom, 15, CssUnits.Em)
                            .WithStyle(CssPropertyNames.Border, NumberCssStyleValue.CreatePixelValue(5), TextCssStyleValue.CreateTextValue("dotted"))
                            .AddPseudoSelector(PseudoSelector.Hover, props => props
                                               .WithStyle(CssPropertyNames.Color, "red")
                                               .WithStyle(CssPropertyNames.Width, "20px"))
                            .AddMediaQuery("@media (min-width: 1024px)", props =>
                                           props.WithStyle(CssPropertyNames.Width, "50px"));

            Assert.True(cssClass.Equals(cssClass2));
        }
 void ControlTreeDataLoader.LoadData()
 {
     if (!ExcludesBuiltInCssClass)
     {
         CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);
     }
     this.AddControlsReturnThis(markupControls.Concat(codeControls));
 }
Beispiel #20
0
        void ControlTreeDataLoader.LoadData()
        {
            CssClass =
                CssClass.ConcatenateWithSpace(
                    allStylesBothStatesClass + " " +
                    (style == SectionStyle.Normal ? getSectionClass(normalClosedClass, normalExpandedClass) : getSectionClass(boxClosedClass, boxExpandedClass)));

            if (heading.Any())
            {
                var headingControls =
                    new WebControl(HtmlTextWriterTag.H1)
                {
                    CssClass = headingClass
                }.AddControlsReturnThis(heading.GetLiteralControl())
                .ToSingleElementArray()
                .Concat(postHeadingControls);
                if (expanded.HasValue)
                {
                    var toggleClasses = style == SectionStyle.Normal ? new[] { normalClosedClass, normalExpandedClass } : new[] { boxClosedClass, boxExpandedClass };

                    var headingContainer =
                        new Block(
                            new[] { new EwfLabel {
                                        Text = "Click to Expand", CssClass = closeClass
                                    }, new EwfLabel {
                                        Text = "Click to Close", CssClass = expandClass
                                    } }.Concat(
                                headingControls).ToArray())
                    {
                        CssClass = headingClass
                    };
                    var actionControlStyle = new CustomActionControlStyle(c => c.AddControlsReturnThis(headingContainer));

                    this.AddControlsReturnThis(
                        disableStatePersistence
                                                        ? new CustomButton(() => "$( '#" + ClientID + "' ).toggleClass( '" + StringTools.ConcatenateWithDelimiter(" ", toggleClasses) + "', 200 )")
                    {
                        ActionControlStyle = actionControlStyle
                    }
                                                        : new ToggleButton(this.ToSingleElementArray(), actionControlStyle, toggleClasses: toggleClasses) as Control);
                }
                else
                {
                    var headingContainer = new Block(headingControls.ToArray())
                    {
                        CssClass = headingClass
                    };
                    this.AddControlsReturnThis(new Block(headingContainer));
                }
            }
            if (contentControls.Any())
            {
                this.AddControlsReturnThis(new Block(contentControls.ToArray())
                {
                    CssClass = contentClass
                });
            }
        }
Beispiel #21
0
 /// <summary>
 /// Renders this control after applying the appropriate CSS classes.
 /// </summary>
 protected override void Render(HtmlTextWriter writer)
 {
     CssClass = CssClass.ConcatenateWithSpace("ewfControlList");
     if (IsStandard)
     {
         CssClass = CssClass.ConcatenateWithSpace("ewfStandard");
     }
     base.Render(writer);
 }
 void ControlTreeDataLoader.LoadData()
 {
     if (TagKey == HtmlTextWriterTag.Button)
     {
         PostBackButton.AddButtonAttributes(this);
     }
     CssClass = CssClass.ConcatenateWithSpace("ewfClickable");
     ActionControlStyle.SetUpControl(this, "", Unit.Empty, Unit.Empty, width => { });
 }
Beispiel #23
0
 /// <summary>
 /// Renders this control after applying the appropriate CSS classes.
 /// </summary>
 protected override void Render(HtmlTextWriter writer)
 {
     if (isStandard)
     {
         CssClass       = CssClass.ConcatenateWithSpace("ewfStandardDynamicTable");
         table.CssClass = table.CssClass.ConcatenateWithSpace("ewfStandard");
     }
     base.Render(writer);
 }
Beispiel #24
0
        public string GetPanelClass()
        {
            if (_panelContent == null)
            {
                return("");
            }

            return(CssClass.Get().ForSiteOverlay(_panelContent.Ticket));
        }
Beispiel #25
0
 /// <summary>
 /// Renders this control after applying the appropriate CSS classes.
 /// </summary>
 protected override void Render(HtmlTextWriter writer)
 {
     CssClass = CssClass.ConcatenateWithSpace("textBoxWrapper");
     if (Width.Type == UnitType.Pixel && Width.Value > 0)              // Only modify width if it has been explicitly set in pixels.
     {
         Width = (int)Width.Value - 6;
     }
     base.Render(writer);
 }
Beispiel #26
0
 protected override string FormatValueAsString(T value)
 {
     if (CssClass.Contains("selectpicker"))
     {
         var id = "#" + AdditionalAttributes.First(x => x.Key == "id").Value;
         JsRuntime.InvokeAsync <object>("Selectpicker", id, value.ToString());
     }
     return(base.FormatValueAsString(value));
 }
Beispiel #27
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!CssClass.Contains("icons-delete"))
            {
                CssClass += " icons-delete";
            }
        }
Beispiel #28
0
 protected override void Render(HtmlTextWriter writer)
 {
     LocalizeStrings();
     if (!Enabled && !string.IsNullOrEmpty(DisabledCssClass))
     {
         CssClass = DisabledCssClass;
     }
     writer.AddAttribute("class", CssClass.Trim());
     base.Render(writer);
 }
Beispiel #29
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            Visible = Controls.Count > 0;
            if (Visible)
            {
                Register.TabPanel(Page, "." + CssClass.Replace(' ', '.'), RegisterTabCss);
            }
        }
Beispiel #30
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (detectSideColumn)
            {
                columnId = this.GetColumnId();

                switch (columnId)
                {
                case UIHelper.LeftColumnId:
                case UIHelper.RightColumnId:

                    //if (sideColumnxtraCssClasses.Length > 0)
                    //{
                    extraCssClasses = sideColumnxtraCssClasses;
                    //}

                    //if (sideColumnLiteralExtraTopContent.Length > 0)
                    //{
                    literalExtraTopContent = sideColumnLiteralExtraTopContent;
                    //}

                    //if (sideColumnLiteralExtraBottomContent.Length > 0)
                    //{
                    literalExtraBottomContent = sideColumnLiteralExtraBottomContent;
                    //}

                    break;

                case UIHelper.CenterColumnId:
                default:
                    // nothing to do here

                    break;
                }
            }


            if (extraCssClasses.Length > 0)
            {
                if (CssClass.Length > 0)
                {
                    //CssClass += " " + extraCssClasses;
                    if (!CssClass.Contains(extraCssClasses))
                    {
                        CssClass = extraCssClasses + " " + CssClass;
                    }
                }
                else
                {
                    CssClass = extraCssClasses;
                }
            }
        }
Beispiel #31
0
 public static WebControl ToggleStyle(this WebControl control, bool needsstyle, CssClass styletrue, CssClass stylefalse)
 {
     return control.ToggleStyle(needsstyle, styletrue.Name, stylefalse.Name);
 }
Beispiel #32
0
 public static WebControl AddStyle(this WebControl control, CssClass style)
 {
     return control.AddStyle(style.Name);
 }
Beispiel #33
0
 public static WebControl ToggleStyle(this WebControl control, CssClass style)
 {
     return control.ToggleStyle(style.Name);
 }