Search code examples
asp.nethtmlaspmenu-control

Would Asp.net controls render HTML based on the client?


I have asp:menu control on my page. Never had any problems with it, until my Firefox was updated to v17.
The asp:menu control generates Table in asp.net 3.5. But I have CssAdapter that generate unordered-list instead. But on FF v17 its not working anymore. IE & Chrome are good. I suspect the refID property for Firefox has something to do!
I am running on Asp.Net 3.5, so there is no RenderMode property available.


Solution

  • Wow! That was simple, all I had to do was change browser refID from MozillaFirefox to Mozilla.

      <browser refID="Mozilla">
          <controlAdapters>
              <adapter controlType="System.Web.UI.WebControls.Menu"
                       adapterType="Test.Controls.MenuAdapter" />
          </controlAdapters>
      </browser>