private void Page_Load(object sender, System.EventArgs e)
        {
            UITabList.SetCampaignTabs((MsterPageTabs)Page.Master, UITabList.CampaignTabs.Web);
            MessageLabel.Visible = false;
            SetupSecurity();
            LocalizePage();
            ShowFriendlyUrl();
            if (!Page.IsPostBack)
            {

                // Header.SurveyId = SurveyId;
                ((Wap)Master.Master).HeaderControl.SurveyId = SurveyId;
                var survey = new Surveys().GetSurveyById(SurveyId, null).Surveys[0];
                Guid guid = survey.SurveyGuid;
                if (!survey.IsFriendlyNameNull())
                    txtFriendly.Text = survey.FriendlyName;
                CodeHyperLink.NavigateUrl = GetUrl("?surveyid=" + guid.ToString());
                CodeMobileHyperLink.NavigateUrl = GetMobileUrl("?surveyid=" + guid.ToString());

                CodeHyperLink.Text = CodeHyperLink.NavigateUrl;
                CodeMobileHyperLink.Text = CodeMobileHyperLink.NavigateUrl;
            }
            SetupTextArea();
        }
        private void ShowFriendlyUrl()
        {
            var survey = new Surveys().GetSurveyById(SurveyId, null).Surveys[0];

            if (!survey.IsFriendlyNameNull())
            {
                friendlyUrlLink.Visible = true;
                friendlyUrlLink.Text = GetUrl("/" + survey.FriendlyName);
                friendlyUrlLink.NavigateUrl = GetUrl("/" + survey.FriendlyName);

                friendlyMobileUrlLink.Visible = true;
                friendlyMobileUrlLink.Text = GetMobileUrl("/" + survey.FriendlyName);
                friendlyMobileUrlLink.NavigateUrl = GetMobileUrl("/" + survey.FriendlyName);


            }
            else
            {
                friendlyUrlLink.Visible = false;
                friendlyMobileUrlLink.Visible = false;
            }
        }