I am not sure what's going on, but, the HTML code generated on my PC and published on host are different. On my PC, it generates <div class="menu">. But, from the host, it generates <table class="menu">. I have double checked my ASP .NET versions, both are
4.0 and they are both set in 4.0 in web.config as well. What is going on?
Thank you.
I fixed this using RenderingMode="List"
But, how do I set the default to List? Or how to I do a One-To-One mapping of defaults to my host? I don't know what was set default on my own PC and I want to set the same defaults to my hosts.
What browsers are you using? This can be due to the differences associated with the browser as the HTML rendered by your application will reflect the browser in use,
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
Hi, I figured out it is RenderingMode, but, I don't know how to change the default values. So far, I set it manually in my master pages. Would be better to update the default RenderingMode instead. If you know how, please let me know, thank you.
magicalclick
Member
54 Points
50 Posts
asp:Menu generating different HTML code when published online.
Feb 22, 2012 01:30 AM|LINK
Hi,
I am not sure what's going on, but, the HTML code generated on my PC and published on host are different. On my PC, it generates <div class="menu">. But, from the host, it generates <table class="menu">. I have double checked my ASP .NET versions, both are 4.0 and they are both set in 4.0 in web.config as well. What is going on?
Thank you.
I fixed this using RenderingMode="List"
But, how do I set the default to List? Or how to I do a One-To-One mapping of defaults to my host? I don't know what was set default on my own PC and I want to set the same defaults to my hosts.
Thank you.
Careed
All-Star
18764 Points
3637 Posts
Re: asp:Menu generating different HTML code when published online.
Feb 22, 2012 01:37 AM|LINK
What browsers are you using? This can be due to the differences associated with the browser as the HTML rendered by your application will reflect the browser in use,
"The oxen are slow, but the earth is patient."
magicalclick
Member
54 Points
50 Posts
Re: asp:Menu generating different HTML code when published online.
Feb 22, 2012 01:40 AM|LINK
Hi, I figured out it is RenderingMode, but, I don't know how to change the default values. So far, I set it manually in my master pages. Would be better to update the default RenderingMode instead. If you know how, please let me know, thank you.
markfitzme
Star
14433 Points
2227 Posts
Re: asp:Menu generating different HTML code when published online.
Feb 22, 2012 02:03 AM|LINK
The defaults cannot be changed really. If you are using themes though you can define certain default settings for controls in a skin file.
magicalclick
Member
54 Points
50 Posts
Re: asp:Menu generating different HTML code when published online.
Feb 22, 2012 02:30 AM|LINK
That's kinda odd, oh well. That's good to know. Thank you.