Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.IncludeCss("~/css/MainBanner.css");

            if (!IsPostBack)
            {
                MainBannerImageTag.Src = DomainDesign.GetImageUri("lgbanner.png")
                                         .ToString();
                MainBannerHomeLink.HRef = UrlManager.CurrentSiteUri.ToString();

                if (DomainData.IsValidStateCode)
                {
                    var stateCode = DomainData.FromQueryStringOrDomain;
                    var stateName = StateCache.GetStateName(stateCode);
                    MainBannerStateName.Src = DomainDesign.GetImageUri("name.png")
                                              .ToString();
                    MainBannerStateName.Alt = stateName;
                    var title = "Click to go to the Official " + stateName +
                                " Election Authority Website";
                    //MainBannerStateSiteLink.Title = title;
                    MainBannerStateSiteLink.InnerText = title + " →";
                    MainBannerStateSiteLink.HRef      = StateCache.GetUri(stateCode)
                                                        .ToString();
                }
                else
                {
                    MainBannerStateBanner.Visible = false;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.IncludeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js");
            Page.IncludeJs("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js");
            Page.IncludeJs("~/js/vote.js");
            Page.IncludeJs("~/js/AddressEntry.js");
            Page.IncludeCss("~/jq/jquery-ui.css");
            Page.IncludeCss("~/css/AddressEntry.css");

            string stateCode = DomainData.FromQueryStringOrDomain;

            MiniLogo.Src = DomainDesign.GetImageUri("smbanner.png").ToString();
            MiniLogo.Alt = UrlManager.GetDomainDesignCodeHostName(stateCode);

            //MiniLogo.Alt = "Vote-USA.org";

            StateCache.Populate(AddressEntryStatesDropDownList, "", "");
        }