示例#1
0
        /// <exclude />
        public Feedback(string emptyParameter) : base("ui:feedbackset")
        {
            this.Attributes["clientid"] = "feedback";

            _requestTag = new Generic("ui:request");
            _requestTag.Attributes["clientid"] = "__REQUEST";
            _requestTag.Attributes["callbackid"] = "__REQUEST";

            _responseTag = new Generic("ui:response");
            _responseTag.Attributes["clientid"] = "__RESPONSE";
            _responseTag.Attributes["checksum"] = DateTime.Now.Ticks.ToString();

            _consoleIdField = new Generic("input");
            _consoleIdField.Attributes["type"] = "hidden";
            _consoleIdField.Attributes["clientid"] = "__CONSOLEID";
            _consoleIdField.Attributes["name"] = "__CONSOLEID";

            // Persisting "__CONSOLEID" field value
            _consoleId = GetConsoleId();
            if (!_consoleId.IsNullOrEmpty())
            {
                _consoleIdField.Attributes["value"] = _consoleId;
            }

            this.Controls.Add(_requestTag);
            this.Controls.Add(_responseTag);
            _requestTag.Controls.Add(_consoleIdField);
        }
示例#2
0
            private static Control GetControlThatHandlesEvent(Generic generic)
            {
                Control control = generic;
                do
                {
                    control = control.Parent;
                } while (control != null 
                    && !(control is UserControl)
                    && !(control is Page));

                return control;
            }
示例#3
0
 /// <exclude />
 public PostBackEventHandler(Generic control)
 {
     _control = control;
 }
示例#4
0
 /// <exclude />
 public PostBackEventHandler(Generic control)
 {
     _control = control;
 }