Aspx file call not working in IE
<p>The website: <a href="http://www.hilinehomes.com" rel="nofollow">http://www.hilinehomes.com</a></p>

<p>There are several ASP.net pages that call a .aspx 'Contact us' file that includes a drop down to select different offices and their data. This works fine in Chrome and Firefox, broken in IE.</p>

<p>The data for the pull-down box is in the Default.Master file. I am not an ASP.net programmer, but know just enough to make slight, occasional changes.</p>

<p>If you visit the site fresh in IE, the drop down works. If you select a drop down other than Puyallup and then refresh, the drop down breaks. If you clear temp files and refresh, it works again.</p>

<p>The code for 'contactbar.aspx':</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="contactbar.ascx.cs" Inherits="HiLine.Web.UserControls.contactbar" %&gt;
&lt;div id="sidebar-main"&gt;
&lt;div class="sidebar" id="contact"&gt;
  &lt;h4&gt;
    Contact Us&lt;/h4&gt;
  &lt;select name="location" id="location"&gt;
    &lt;option value="1"&gt;Puyallup, WA&lt;/option&gt;
    &lt;option value="8"&gt;Burlington, WA&lt;/option&gt;
    &lt;option value="10"&gt;Central Oregon&lt;/option&gt;
    &lt;option value="3"&gt;Centralia, WA&lt;/option&gt;
    &lt;option value="4"&gt;Grays Harbor, WA&lt;/option&gt;
    &lt;option value="13"&gt;Moses Lake, WA&lt;/option&gt;
    &lt;option value="2"&gt;Oly. Peninsula, WA&lt;/option&gt;
    &lt;option value="16"&gt;Roseburg, OR&lt;/option&gt;
    &lt;option value="9"&gt;Salem, OR&lt;/option&gt;
    &lt;option value="15"&gt;Spokane, WA&lt;/option&gt;
    &lt;option value="7"&gt;Tri-Cities, WA&lt;/option&gt;
    &lt;option value="14"&gt;Wenatchee, WA&lt;/option&gt;
    &lt;option value="5"&gt;Woodland, WA&lt;/option&gt;    
    &lt;option value="6"&gt;Yakima, WA&lt;/option&gt;
  &lt;/select&gt;
  &lt;div id="default" style="display: block; visibility: visible;"&gt;
    &lt;p&gt;
      Select one of our offices closest to the location where you intend to build a home.&lt;/p&gt;
  &lt;/div&gt;
  &lt;div id="contactDiv" style="display: none; visibility: hidden;"&gt;
    &lt;p id="address"&gt;
      1888 Belmont Loop&lt;br /&gt;
      Woodland, WA 98674&lt;/p&gt;
    &lt;p id="phonefax"&gt;
      &lt;b&gt;Tel:&lt;/b&gt; 360-225-1768&lt;br /&gt;
      &lt;b&gt;Fax:&lt;/b&gt; 360-225-7813&lt;/p&gt;
    &lt;p id="officehours"&gt;
      &lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;
      9:00-5:30 Monday-Saturday&lt;/p&gt;
    &lt;div id="featuresVary" style="margin: 10px; margin-left: 15px; font-size: 11px; clear: both; border: 1px solid white; padding: 4px;
      background-color: #f37121;"&gt;
      Features, Options and Promotional Offers May Vary By Location. Contact Your Local Sales Office For Additional Information or to make an after hours appointment.
    &lt;/div&gt;
    &lt;a href="contactform2.aspx"&gt;
      &lt;img src="images/email_btn.gif" style="float: right; margin-right: 17px;" id="sendmail_btn" alt="Send Email" /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;/div&gt;
  &lt;div style="background:none;padding-left:18px;padding-top:15px;margin-top:30px;"&gt;
&lt;script type="text/javascript" src="http://static.ak.connect.facebook.com/connect.php/en_US"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;FB.init("022348d39113d1fd3da56159b62598f7");&lt;/script&gt;&lt;fb:fan profile_id="214974200273" stream="0" connections="6" logobar="1" width="180"&gt;&lt;/fb:fan&gt;
  &lt;/div&gt;  
 &lt;img id="energy_star" src="images/energy_star.gif" /&gt;
  &lt;/div&gt;
</code></pre>

<p>On the ASP.net pages, all that is listed in the code is:</p>

<pre><code>&lt;hiline:contact id="contact" runat="server" /&gt;
</code></pre>

<p>In the Default.Master file, this is the code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        var contactInfo = new Array();
        // [display address, gmaps address, phone/fax, office hours, model home]
        contactInfo["1"] = ["11210 Woodland Ave E.&lt;br /&gt;Puyallup, WA 98373", "11210 Woodland Ave E., Puyallup, WA 98373", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+12538401722'&gt;253-840-1722&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Fax:&lt;/b&gt; 253-840-1836&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.hilinehomespuyallup.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["2"] = ["Call for an Appointment", "92 Kala Square Place Port Townsend, WA 98368", "&lt;b&gt;Tel:&lt;/b&gt; (866) 789-3507", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:30&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["3"] = ["Call for an Appointment", "1213 Long Road, Centralia, WA 98531", "&lt;b&gt;Tel:&lt;/b&gt; (866) 745-4553", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:30&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["4"] = ["306 4th St.&lt;br /&gt;Satsop, WA 98583", "306 4th St., Satsop, WA 98583", "&lt;b&gt;Tel:&lt;/b&gt;&lt;a class='mobile' href='tel:+13604824224'&gt;360-482-4224&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.hilinehomesgraysharbor.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["5"] = ["1888 Belmont Loop Road&lt;br /&gt;Woodland, WA 98674", "1888 Belmont Loop, Woodland, WA 98674", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+13602551768'&gt;360-225-1768&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Fax:&lt;/b&gt; 360-225-7813&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.hilinehomeswoodland.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["6"] = ["2410 Terrace Hts. Dr.&lt;br /&gt;Yakima, WA 98901", "2410 Terrace Heights. Dr., Yakima, WA 98901", "&lt;b&gt;Tel:&lt;/b&gt;&lt;a class='mobile' href='tel:+15095751722'&gt; 509-575-1722&lt;a/&gt;&lt;br /&gt;&lt;b&gt;Fax:&lt;/b&gt; 509-575-1851", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["7"] = ["5520 West Hood Ave.&lt;br /&gt;Kennewick, WA 99336",         "5520 West Hood Ave. Kennewick, WA 99336", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15097351722'&gt;509-735-1722&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Fax:&lt;/b&gt; 509-735-3415", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["16"] = ["Call for an Appointment", "2101 SE Stellers Eagle Street, Roseburg, OR 97470", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15419571721'&gt;541-957-1721&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id='webani'&gt;&lt;a href='http://www.hilinehomesroseburg.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["9"] = ["3935 Hagers Grove Rd. SE.&lt;br /&gt;Salem, OR 97317",       "3935 Hagers Grove Rd. SE., Salem, OR 97317", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15033991721'&gt;503-399-1721&lt;/a&gt;&lt;br /&gt;CCB# 181652&lt;br /&gt;&lt;br /&gt;&lt;div id='webani'&gt;&lt;a href='http://www.hilinehomessalem.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["10"] = ["&lt;b&gt;Model Home:&lt;/b&gt;&lt;br /&gt;1454 NW Maple Rim Court&lt;br /&gt;Redmond, OR 97756", "&lt;b&gt;Model Home:&lt;/b&gt;&lt;br /&gt;1454 NW Maple Rim Court&lt;br /&gt;Redmond, OR 97756", "&lt;b&gt;Tel:&lt;/b&gt;&lt;a class='mobile' href='tel:+15416471600'&gt;541-647-1600&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.hilinehomescentraloregon.com' target='_blank'&gt;&lt;img src='images/webani.gif' width='175' height='30' /&gt;&lt;/a&gt;", "&lt;b&gt;Model Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:00&lt;br /&gt;Monday-Saturday"];
        contactInfo["14"] = ["1848 N Wenatchee Ave&lt;br /&gt;Wenatchee, WA. 98801",      "1818 N Wenatchee Ave&lt;br /&gt;Wenatchee, WA. 98801", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15096631722'&gt;509-663-1722&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:30-5:30&lt;br /&gt;Tuesday-Saturday", "1716"];
        contactInfo["15"] = ["506 N Vercler St.&lt;br /&gt;Spokane Valley, WA 99216",     "15320 E Marietta Ave. Suite #2&lt;br /&gt;Spokane Valley, WA 99216", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15093211000'&gt;509-321-1000&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;9:00-5:30&lt;br /&gt;Monday-Saturday", "1716"];
        contactInfo["13"] = ["1611 South Beaumont Drive&lt;br /&gt;Moses Lake, WA 98837", "1611 South Beaumont Drive&lt;br /&gt;Moses Lake, WA 98837", "&lt;b&gt;Tel:&lt;/b&gt; &lt;a class='mobile' href='tel:+15097642345'&gt;509-764-2345&lt;/a&gt;", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;10:00-5:00&lt;br /&gt;Friday and Saturday", "1716"];
        contactInfo["8"] = ["489 Andis Road&lt;br /&gt;Burlington, WA 98233",            "489 Andis Road Burlington, WA 98233", "&lt;b&gt;Tel:&lt;/b&gt; 360-707-2112", "&lt;b&gt;Office Hours:&lt;/b&gt;&lt;br /&gt;10:00-5:00&lt;br /&gt;Friday and Saturday", "1716"];

        function setCookie(c_name,value,expiredays)
        {
        var exdate=new Date();
        exdate.setDate(exdate.getDate()+expiredays);
        document.cookie=c_name+ "=" +escape(value)+
        ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
        }

        function getCookie(c_name)
        {
        if (document.cookie.length&gt;0)
          {
          c_start=document.cookie.indexOf(c_name + "=");
          if (c_start!=-1)
            { 
            c_start=c_start + c_name.length+1; 
            c_end=document.cookie.indexOf(";",c_start);
            if (c_end==-1) c_end=document.cookie.length;
            return unescape(document.cookie.substring(c_start,c_end));
            } 
          }
        return "";
        }

        function addListener(element, event, listener, bubble) {
          if(element != null)
          {
            if(element.addEventListener) {
              if(typeof(bubble) == "undefined") bubble = false;
              element.addEventListener(event, listener, bubble);
            } else if(this.attachEvent) {
              element.attachEvent("on" + event, listener);
            }
          }
        }

        //swaps out contact info
        function swapContactInfo () {
            officeSelect = document.getElementById("location");
            if(officeSelect != null)
            {
              whichOffice = officeSelect.options[officeSelect.selectedIndex].value;
              var defaultDiv = document.getElementById("default");
              var contactDiv = document.getElementById("contactDiv");
              var directionsDiv = document.getElementById("directions");
              setCookie("Office", whichOffice, 30);
              if(whichOffice != "none"){
                  myAddress = document.getElementById("address");
                  myAddress.innerHTML = contactInfo[whichOffice][0];  
                  myPhone = document.getElementById("phonefax");
                  myPhone.innerHTML = contactInfo[whichOffice][2];
                  myHours = document.getElementById("officehours");
                  myHours.innerHTML = contactInfo[whichOffice][3];
                  if(thisPage == "buildarea") {      
                      officeText = document.getElementById("officeName");
                      myOffice = officeSelect.options[officeSelect.selectedIndex].text;
                      if(myOffice=="graysharbor") {
                          myOffice = "grays harbor";
                      }
                      officeText.innerHTML = myOffice + " ";
                      directionsDiv.style.visibility = "visible";
                      directionsDiv.style.display = "block";
                  }
                  defaultDiv.style.visibility = "hidden";
                  defaultDiv.style.display = "none";
                  contactDiv.style.visibility = "visible";
                  contactDiv.style.display = "block";
              } else {
                  if(thisPage == "buildarea") { 
                      directionsDiv.style.visibility = "hidden";
                      directionsDiv.style.display = "none";
                  }
                  defaultDiv.style.visibility = "visible";
                  defaultDiv.style.display = "block";
                  contactDiv.style.visibility = "hidden";
                  contactDiv.style.display = "none";
              }
            }             

        }
</code></pre>

<p>There is other code, but I think this is the relevant stuff.</p>

<p>The client knows zero tech and thus is on fire, getting frustrated that I can't get this to work correctly. I could use your help and would appreciate it immensely!!</p>

<p>Maybe they'll finally lose the idea that a mere 'girl' can't get results. Grrrr.</p>

<p>Ask any questions you need, I'm happy to provide any additional data to help get this resolved. Thank you, thank you!</p>
