/// <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); }
private static Control GetControlThatHandlesEvent(Generic generic) { Control control = generic; do { control = control.Parent; } while (control != null && !(control is UserControl) && !(control is Page)); return control; }
/// <exclude /> public PostBackEventHandler(Generic control) { _control = control; }