title: Links/icons that are generated in codebehind aren't showing up on certain mobile devices
body: <p>UPDATE:</p>
  
  <p>I decided to test if it was an issue with fontawesome, so I replaced the  icons with plain text:</p>
  
  <pre><code>&lt;a href=\"javascript:void(0)\" onclick=\"expandMenu($(this))\" class=\"show-second-level toggle\"&gt;&lt;span&gt;V&lt;/span&gt;&lt;/a&gt;&lt;a href=\"javascript:void(0)\" onclick=\"retractMenu($(this))\" class=\"hide-second-level toggle\"&gt;&lt;span&gt;^&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The plain text links are showing up on all devices now and are working in Android, but they aren't working on the iPad (clicking them does nothing). </p>
  
  <hr>
  
  <p>I have a collapsible menu on my site. In my ul, I have categories listed with a little caret link (fontawesome) next to them open/close the inner menu. This is how it looks on my iPhone:</p>
  
  <p><a href="http://i.stack.imgur.com/Q3IQW.png">Menu on my iPhone</a></p>
  
  <p><a href="http://i.stack.imgur.com/B5SOm.png">Expanded menu</a></p>
  
  <p>The red border is on the 'a' tag, so the entire area inside the red border should expand the menu when clicked. It does this as expected on all desktop browsers and my iPhone. However, my client is reporting that it doesn't work on an iPad, MS Surface Pro, or Android phone. There are different problems on each. I put the red border around the expand links to see whether the links were showing up in the right place. On tablet, the red border is there but the arrow links are missing. Tapping the area where they should be does nothing. On Android, the red border isn't showing up at all, and again, tapping in the area does nothing.</p>
  
  <p>This is the code that generates these menu items:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;asp:Repeater ID="MenuRepeater" runat="server" OnItemDataBound="MenuRepeater_ItemDataBound"&gt;
          &lt;ItemTemplate&gt;
              &lt;li &lt;%# (Container.DataItem as LinkData).Class %&gt;&gt;
                  &lt;asp:HyperLink ID="MenuHyperLink" runat="server"&gt;
  
                  &lt;/asp:HyperLink&gt;
  
                  &lt;%# (Container.DataItem as LinkData).ExpandLinks %&gt;       
  
                  &lt;ul&gt;
                      &lt;asp:Repeater DataSource='&lt;%# DataBinder.Eval(Container.DataItem, "SubLinks") %&gt;' runat="server"&gt;
                          &lt;ItemTemplate&gt;
                              &lt;li &lt;%# (Container.DataItem as LinkData).Class %&gt;&gt;
                                  &lt;a href='&lt;%# DataBinder.Eval(Container.DataItem, "Link") %&gt;'&gt;&lt;%# DataBinder.Eval(Container.DataItem, "Text") %&gt;&lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ItemTemplate&gt;
  
                      &lt;/asp:Repeater&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
  
  &lt;/ul&gt;
  </code></pre>
  
  <p>The ExpandLinks are what generate the arrows. I have them placed in dynamically because not all menu items are expandable, so the code only puts an expand link in place if the item has a sub menu. Here is the code that generates the menus. The "if" statement is the condition that creates an expandable menu; the "else" creates a basic link with no child menu. The important part here is where tempLD.expandLinks is defined. </p>
  
  <pre><code>foreach (var item in sections)
  {
      // if we have more than on section, that means we have expandable categories
      if (sections.Count() &gt; 1 &amp;&amp; item != sections.First()) // for second item and on
      {
          tempLD = new LinkData();
          tempLD.Text = item.SectionTitle;
          tempLD.Class = "class=\"category expandable\"";
          autoData.Add(tempLD);
  
          if (item.Link != null &amp;&amp; item.Link.Any())
          {
              // special case for first-level items:
              if (item.Link.Count() == 1 &amp;&amp; item.Link.FirstOrDefault().a.OuterXML == item.SectionTitle)
              {
                  tempLD.Link = item.Link.FirstOrDefault().a.href;
                  tempLD.Class = "class=\"\"";
              }
  
              else
              {
                  tempLD.ExpandLinks =
                      "&lt;a href=\"javascript:void(0)\" onclick=\"expandMenu($(this))\" class=\"show-second-level toggle\"&gt;&lt;i class=\"fa fa-caret-down\"&gt;&lt;/i&gt;&lt;/a&gt;&lt;a href=\"javascript:void(0)\" onclick=\"retractMenu($(this))\" class=\"hide-second-level toggle\"&gt;&lt;i class=\"fa fa-caret-up\"&gt;&lt;/i&gt;&lt;/a&gt;";
                  var subLinks = new List&lt;LinkData&gt;();
                  foreach (var child in item.Link)
                  {
                      var subLink = new LinkData();
                      subLink.Text = child.a.OuterXML;
                      subLink.Link = child.a.href;
                      subLink.Class = "class=\"category-child\"";
                      subLink.SubLinks = new List&lt;LinkData&gt;();
  
                      subLinks.Add(subLink);
                  }
                  tempLD.SubLinks = subLinks;
              }
          }
      }
  
      else
      {
          tempLD = new LinkData();
          tempLD.Text = item.SectionTitle;
          tempLD.Class = "class=\"sub-parent\"";
          tempLD.SubLinks = new List&lt;LinkData&gt;();
          autoData.Add(tempLD);
  
          if (item.Link != null &amp;&amp; item.Link.Any())
          {
              foreach (var child in item.Link)
              {
                  tempLD = new LinkData();
                  tempLD.Text = child.a.OuterXML;
                  tempLD.Link = child.a.href;
                  tempLD.Class = "class=\"\"";
                  tempLD.SubLinks = new List&lt;LinkData&gt;();
                  autoData.Add(tempLD);
              }
          }
      }
  }
  </code></pre>
  
  <p>I figure this must be a CSS or javascript issue, but I don't know what's going wrong</p>
  
  <p>Here is the HTML that is rendered:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li class="active"&gt;
          &lt;a id="ctl00_MainContentPH_SideBreadcrumb_MenuRepeater_ctl00_MenuHyperLink" href="/Our-Services/"&gt;Our Care&lt;/a&gt;
         &lt;ul&gt;&lt;/ul&gt;
     &lt;/li&gt;
     &lt;li class="sub-parent"&gt;
         &lt;span&gt;Specialty Care and Programs&lt;/span&gt;
         &lt;ul&gt;&lt;/ul&gt;
     &lt;/li&gt;
     &lt;li class="category expandable"&gt;
         &lt;span&gt;Programs and Clinics&lt;/span&gt;
         &lt;a href="javascript:void(0)" onclick="expandMenu($(this))" class="show-second-level toggle"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;&lt;a href="javascript:void(0)" onclick="retractMenu($(this))" class="hide-second-level toggle"&gt;&lt;i class="fa fa-caret-up"&gt;&lt;/i&gt;&lt;/a&gt;
         &lt;ul&gt;
             &lt;li class="category-child"&gt;
                 &lt;a href="/Our-Services/Programs-and-Clinics/Birthmark-Treatment-Program/"&gt;Birthmark Treatment Program&lt;/a&gt;
             &lt;/li&gt;
             &lt;li class="category-child"&gt;
                 &lt;a href="/Our-Services/Programs-and-Clinics/Cancer-and-Blood-Disorders-Center/"&gt;Cancer and Blood Disorders Center&lt;/a&gt;
             &lt;/li&gt;
             &lt;li class="category-child"&gt;
                 &lt;a href="/Our-Services/Programs-and-Clinics/Craniofacial-Reconstruction-Program/"&gt;Craniofacial Reconstruction Program&lt;/a&gt;
             &lt;/li&gt;
         &lt;/ul&gt;
     &lt;/li&gt;
     &lt;li class="category expandable"&gt;
         &lt;span&gt;Rehabilitative Services and Therapy&lt;/span&gt;
             &lt;a href="javascript:void(0)" onclick="expandMenu($(this))" class="show-second-level toggle"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;&lt;a href="javascript:void(0)" onclick="retractMenu($(this))" class="hide-second-level toggle"&gt;&lt;i class="fa fa-caret-up"&gt;&lt;/i&gt;&lt;/a&gt;
             &lt;ul&gt;
                 &lt;li class="category-child"&gt;
                     &lt;a href="/Our-Services/Rehabilitative-Services-and-Therapy/Occupational-Therapy/"&gt;Occupational Therapy&lt;/a&gt;
                 &lt;/li&gt;
                 &lt;li class="category-child"&gt;
                     &lt;a href="/Our-Services/Rehabilitative-Services-and-Therapy/Physical-Therapy/"&gt;Physical Therapy&lt;/a&gt;
                 &lt;/li&gt;
                 &lt;li class="category-child"&gt;
                     &lt;a href="/Our-Services/Rehabilitative-Services-and-Therapy/Specialty-Therapy-Services/"&gt;Specialty Therapy Services&lt;/a&gt;
                 &lt;/li&gt;
             &lt;/ul&gt;
         &lt;/li&gt;
         &lt;li class="last  "&gt;
             &lt;a id="ctl00_MainContentPH_SideBreadcrumb_MenuRepeater_ctl04_MenuHyperLink" href="/Our-Doctors/Medical-Specialists/"&gt;Medical Specialists&lt;/a&gt;
             &lt;ul&gt;&lt;/ul&gt;
         &lt;/li&gt;
     &lt;/ul&gt;
  </code></pre>