protected override void CreateChildControls()
{
PersistentStoreManager.Instance.ExtendedFileUploadGUID = Constants.fileUploadGUID;
string sendingControlID = null;
if(!IsDesignMode)
sendingControlID = this.Page.Request.QueryString[Constants.FileUploadIDKey];
if(IsDesignMode || String.IsNullOrEmpty(sendingControlID)) {
this._hiddenFieldID = GenerateHtmlInputHiddenControl();
string lastFileName = String.Empty;
if(_persistFile) {
if(PersistentStoreManager.Instance.FileExists(this.ClientID))
lastFileName = PersistentStoreManager.Instance.GetFileName(this.ClientID);
} else if(_postedFile != null) {
lastFileName = _postedFile.FileName;
}
GenerateHtmlInputFileControl(lastFileName);
}
}