void BeginAddMode()
{
if (ViewState[CMSViewStateManager.CategoryID] != null)
{
ViewState.Remove(CMSViewStateManager.SelectedParentGalleryObjID);
ViewState.Remove(CMSViewStateManager.GalleryID);
pnlGalleryItem.Visible = false;
txtDescription.Text = string.Empty;
txtDetails.Text = string.Empty;
txtName.Text = string.Empty;
txtOrderNumber.Text = "0";
txtSummary.Text = string.Empty;
txtOrderNumber.Text = "0";
ucAjaxDate.SelectedDateTime = DateTime.Now;
ucSWFUpload.BeginAddMode();
pnlGalleryAdd.Visible = true;
cddGalleryItemType.SelectedValue = ((int)CMSEnums.GalleryItemType.Internal).ToString();
txtAddName.Text = string.Empty;
txtAddURL.Text = string.Empty;
trAddName.Visible = false;
trAddURL.Visible = false;
trMultiUpload.Visible = true;
ucPortalLanguage.Visible = false;
ucPortalLanguage.SelectedLanguageID = -1;
btnSaveOtherLanguage.Visible = false;
trIsPublished.Visible = true;
cbIsPublished.Checked = false;
btnAdd.Attributes.Add("style", "display:none");
Session.Remove(CMSConfig.ConstantManager.FileUploadKey);
}
}
#endregion