Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ((MasterDiffuseSourcesPage)this.Master).Headline    = Resources.GetGlobal("DiffuseSources", "DiffuseSourcesAirPageHeader");
            ((MasterDiffuseSourcesPage)this.Master).SubHeadline = CMSTextCache.CMSText("DiffuseSources", "aSubheadline");

            ((MasterDiffuseSourcesPage)this.Master).PopulateMaps(MediumFilter.Medium.Air);

            ((MasterDiffuseSourcesPage)this.Master).ShowMapPanel(Global.MainSearchPages.DiffuseAir);
        }

        if (!ScriptManager.GetCurrent(Page).IsInAsyncPostBack)
        {
            // add swf object to page
            MapUtils.AddSmallMap(MasterDiffuseSourcesPage.MAPID, this, Global.MainSearchPages.DiffuseAir, Request.ApplicationPath);
        }
    }