using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.ExtendedControls;
using CMS.GlobalHelper;
using CMS.SiteProvider;
using CMS.UIControls;
public partial class CMSModules_FormControls_Pages_Development_New : SiteManagerPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!RequestHelper.IsPostBack())
{
drpTypeSelector.ControlType = FormUserControlTypeEnum.Input;
}
CurrentMaster.DisplaySiteSelectorPanel = true;
rfvControlName.ErrorMessage = GetString("Development_FormUserControl_Edit.rfvCodeName");
rfvControlDisplayName.ErrorMessage = GetString("Development_FormUserControl_Edit.rfvDisplayName");
// Initialize breadcrumbs
string[,] breadcrumbs = new string[2,3];
breadcrumbs[0, 0] = GetString("Development_FormUserControl_Edit.Controls");
breadcrumbs[0, 1] = "~/CMSModules/FormControls/Pages/Development/List.aspx";
breadcrumbs[0, 2] = "";
breadcrumbs[1, 0] = GetString("Development_FormUserControl_Edit.New");
breadcrumbs[1, 1] = "";
breadcrumbs[1, 2] = "";
// Initialize page
CurrentMaster.Title.Breadcrumbs = breadcrumbs;
CurrentMaster.Title.TitleText = GetString("Development_FormUserControl_Edit.Title");
CurrentMaster.Title.TitleImage = GetImageUrl("Objects/CMS_FormControl/new.png");
CurrentMaster.Title.HelpTopicName = "new_form_control";
CurrentMaster.Title.HelpName = "helpTopic";
// Initialize file selector
FileSystemDialogConfiguration config = new FileSystemDialogConfiguration();
config.DefaultPath = "CMSFormControls";
config.AllowedExtensions = "ascx";
config.ShowFolders = false;
tbFileName.DialogConfig = config;
tbFileName.AllowEmptyValue = false;
tbFileName.SelectedPathPrefix = "~/CMSFormControls/";
tbFileName.ValidationError = GetString("Development_FormUserControl_Edit.rfvFileName");
}
///