XAF_Bootstrap.Controls.XafBootstrapStringEdit.InnerRender C# (CSharp) Метод

InnerRender() публичный Метод

public InnerRender ( ) : void
Результат void
        public void InnerRender()
        {
            if (Helpers.RequestManager.Request.Form[ClientID + "_changed"] == "1")
            {
                _Value = Helpers.RequestManager.Request.Form[ClientID];
                if (EditValueChanged != null)
                    EditValueChanged(this, EventArgs.Empty);
            }

            Content.Text = "";

            String val = Value;
            if (EncodeInnerHtml)
                val = HttpContext.Current.Server.HtmlEncode(Value);

            if (AddonLeft != "")
                Content.Text += String.Format(@"<span class=""input-group-addon"">{0}</span>", AddonLeft);
            if (TextOnly)
            {
                if (IsPassword)
                    val = new Regex(".").Replace(val, "*");
                if (RowCount <= 1)
                    Content.Text += String.Format(@"<span>{0}</span>", val);
                else
                    Content.Text += String.Format(@"<pre class=""xb-pre"">{0}</pre>", val);
            }
            else
            {
                String changeEvent = String.Format(@";window.DataChanged=true;  $('#{0}_changed').val('1');", ClientID);
                if (RowCount <= 1)
                {
                    Content.Text += String.Format(@"<input type=""{3}"" name=""{4}"" class=""form-control input-sm"" placeholder=""{0}"" value =""{1}"" onchange=""{2}"" onkeypress=""{2}"">", Placeholder, val, changeEvent, IsPassword ? "password" : "text", ClientID);
                }
                else
                {
                    Content.Text += String.Format(@"<textarea class=""form-control"" name=""{4}"" rows=""{0}""  onchange=""{2}"" onkeypress=""{2}"" placeholder=""{3}"">{1}</textarea>", RowCount, val, changeEvent, Placeholder, ClientID);
                }
            }
            if (AddonRight != "")
                Content.Text += String.Format(@"<span class=""input-group-addon"">{0}</span>", AddonRight);
            Content.Text += String.Format(@"<input name=""{0}_changed"" id=""{0}_changed"" value=""0"" type=""hidden"">", ClientID);
        }