I've just recently changed the DOCTYPE on my master page to:-
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
as my ajaxcontroltoolkit calendar extenders weren't displaying correctly and I found a post on another site saying the doctype had to be this. These controls began displaying fine, but it caused a whole heap of problems with other pages on my site that I'm gradually working through. The one I'm completely stuck on is this. I use a webchart control ([url=http://http://www.carlosag.net/Tools/WebChart/]from here[/url) to display a dynamic chart on my page. It was working fine, but since the doctype change, the image won't display in firefox. It just seems to be showing the alt text, I think, and when you right click on the text it gives you the normal image options (view image etc.) If I view the source of the page, the src of the <img> tag is correct and if I copy the src into the address bar, the image displays fine, but I can't work out why it won't display on the page. It displays fine in IE. I've tried different image types (png, jpg, gif) but all give the same result. My webchart code is:- Code:
<webchart:ChartControl ID="introducer_chart" Width="500px" Height="300px" ChartFormat="Gif" runat="server" />
and the html this produces is:- Code:
<img id="ctl00_main_content_introducer_chart" alt="Number of Introductions from Bates in 2008" src="\testing\dotnettest\WebCharts\8c763773-08d4-4303-b984-0a9d90ae8ccb.Gif" style="border-color:#000066;border-width:1px;border-style:solid;height:300px;width:500px;" />
I've tried googling all morning but can't find anything about this. Anyone have any ideas what I can do? I guess one option is to switch the doctype on this page if the browser is firefox, although I'm not sure how I could do this. Could you put DOCTYPE into a literal control and then change it via the content page? Any other ideas? Thanks