Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         Agency = REIQ.Access.Agency.GetFromAgencyId(this.AgencyId);
         if (Agency != null)
         {
             AgencyAddress = AgencyHelper.GetAgencyAddress(Agency);
         }
     }
     catch (Exception ex)
     {
         AutoMail.sendErrorMail(ex);
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         Agency = REIQ.Access.Agency.GetFromAgencyId(this.AgencyId);
         //Gmap  initialise
         if (Agency != null)
         {
             ClientScriptManager cs = Page.ClientScript;
             cs.RegisterStartupScript(GetType(), "onLoadCall", "<Script>load('" + AgencyHelper.GetAgencyAddress(Agency) + "')</Script>", false);
         }
     }
     catch (Exception ex)
     {
         AutoMail.sendErrorMail(ex);
     }
 }