protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
{
base.DescribeComponent(descriptor);
if(!IsDesignMode) {
if(this._hiddenFieldID != String.Empty) descriptor.AddElementProperty("hiddenField", this._hiddenFieldID);
if(this._innerTBID != String.Empty) descriptor.AddElementProperty("innerTB", this._innerTBID);
if(this._inputFile != null) descriptor.AddElementProperty("inputFile", this._inputFile.Name.Replace("$", "_"));
descriptor.AddProperty("postBackUrl", Page.Response.ApplyAppPathModifier(Page.Request.RawUrl));
descriptor.AddProperty("formName", Path.GetFileName(this.Page.Form.Name));
if(CompleteBackColor != Color.Empty)
descriptor.AddProperty("completeBackColor", ColorTranslator.ToHtml(CompleteBackColor));
if(ErrorBackColor != Color.Empty)
descriptor.AddProperty("errorBackColor", ColorTranslator.ToHtml(ErrorBackColor));
if(UploadingBackColor != Color.Empty)
descriptor.AddProperty("uploadingBackColor", ColorTranslator.ToHtml(UploadingBackColor));
if(ThrobberID != string.Empty) {
var control = this.FindControl(ThrobberID);
if(control != null)
descriptor.AddElementProperty("throbber", control.ClientID);
}
}
}