locked
ASPX page displays only code in Mozilla Firefox RRS feed

  • Question

  • ASPX page (map control) page displays only code in Mozilla Firefox, but displays properly in IE.

    File in question is:  http://www.snowbird.jpwusn.org     Galleries> On the Road (I currently have three hot spots on this map- California, Home (Maryland) and Eastern Shore of Virginia)

    I am using EW2 and when Preview in browser, the ASPX page displays properly in IE, but not in Mozilla (code only). Is the problem with <%@ Master Language="C#" %>, or is there something else that I am doing wrong?

    Thanks,

    John


    http://www.snowbird.jpwusn.org
    Thursday, October 16, 2008 11:37 AM

Answers

  • Got it! Thanks Ian. Before when I tried to save the html page with a map control in it, I got a warning that I should save it with a .aspx extension. This time I ignored the warning and now it works fine.
    Thanks a million!
    John

    http://www.snowbird.jpwusn.org
    • Marked as answer by jpwusn Thursday, October 16, 2008 3:53 PM
    Thursday, October 16, 2008 3:53 PM

All replies

  • In fact it displays code in anything other than IE. (FF, Chrome, Safari, Opera).

    The page link is to route.master, which is why it isn't displaying correctly. The page needs an aspx extension. .master is used for the master page itself.


    Ian

    http://www.ew-resource.co.uk/
    http://www.fp-resource.co.uk/



    Ian Haynes
    • Edited by Ian Haynes Thursday, October 16, 2008 12:01 PM added info
    Thursday, October 16, 2008 11:48 AM
  • Thanks for the quick reply Ian.
    I made a new page , file name: route.aspx
    Same problem continues.
    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Thursday, October 16, 2008 1:34 PM
  • Sorry, I may have confused you.

    You can't just save the same page as route.aspx. The .master file is a MasterPage which you use as a template. You create new pages from this.

    So, 'File - New - Create From MasterPage' then select the route.master as the master page. Then save the resulting page as route.aspx.

    Normally you'd have a MasterPage for the whole site and base all the pages on this. When you make changes to this master, all the pages using it are updated. You could put any fixed content into this master; headr image, navigation etc., and you then only need to update this single file to have the changes propogated through the entire site. The EW Help may explain this better than I have!

    HTH

    Ian

    http://www.ew-resource.co.uk
    http://www.fp-resource.co.uk


    Ian Haynes
    Thursday, October 16, 2008 2:16 PM
  • OK, thanks Ian. But I seem to be going backwards now!
    Made the change, but now I get only 
    <%@ Page language="C#" masterpagefile="route.master" title="Untitled 1" %>

    on both IE and Mozella- no graphic at all!

    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Thursday, October 16, 2008 2:34 PM
  • First thing, make sure your host supports ASP.Net. Examine the headers that are returned by your server indicate that it it running Server: Apache 3 - HOSTMerit. In other words, it's not an IIS  web server so it won't have the .Net Framework installed. It may have the Mono Project available, which is an open-source project to port .Net to non-Windows platforms, but probably not.
    Thursday, October 16, 2008 2:55 PM
  • OK, now I see the problem. It's because you are trying to run ASP.Net pages on an Apache Linux server.

    ASP.Net is Windows only. (There is an ASP.Net 'framework' for Linux version but it's rare). IE happened to display the raw masterpage but that was just confusing the issue.

    You'll need to put the page content into a normal html page.

    Were you wanting to use a MasterPage for a template in the normal way? If so, a DWT will be the way to go.

    Ian

    http://www.ew-resource.co.uk
    http://www.fp-resource.co.uk


    Ian Haynes
    • Proposed as answer by Ian Haynes Friday, October 17, 2008 3:25 PM
    Thursday, October 16, 2008 2:56 PM
  • Actually all I see in IE7 and Firefox is 
    <%@ Page language="C#" masterpagefile="route.master" title="Untitled 1" %> 

    MS MVP Expression http://by-expression.com
    Thursday, October 16, 2008 2:59 PM
  • Thanks Ian and Cheryl,

    I've gone back to where the page displays in IE. Next I'll try the html roue as suggested by Ian.

    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Thursday, October 16, 2008 3:38 PM
  • Got it! Thanks Ian. Before when I tried to save the html page with a map control in it, I got a warning that I should save it with a .aspx extension. This time I ignored the warning and now it works fine.
    Thanks a million!
    John

    http://www.snowbird.jpwusn.org
    • Marked as answer by jpwusn Thursday, October 16, 2008 3:53 PM
    Thursday, October 16, 2008 3:53 PM
  • Of course, there's a reason for that warning.  Asp.net controls will not work without asp.net.   Don't use them if you don't have asp.net installed on your server.
    Thursday, October 16, 2008 3:58 PM
  • The (image)map control is an ASPX control, so it still won't work......unless you have a windows server and .Net 2.0 installed.



    Andrew M
    Thursday, October 16, 2008 10:40 PM
  • Thanks Andrew. I do have Net 2.0 installed on my computer, but no Windows Server. I must have something installed on my computer that is allowing the page to display properly now.

    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Friday, October 17, 2008 12:02 AM
  • EW comes with a Development Server.  That (plus installing the Net framework on your PC) lets you use and preview ASP.NET 2.0 on your local copy.

    (This is interesting, but not useful if your hosting account doesn't have ASP.NET 2.0 on it, since it won't work when you publish it.)
    Friday, October 17, 2008 1:49 AM
  • I asked my host server about this problem and they responded, "We are a linux hosting platform only, and do not support ASP.net pages.   Windows servers would be ASP."
    There must be something going on, because the page displays properly as published. I noticed in the code that there was a line

    <asp:ImageMap id="ImageMap1" runat="server">
    </asp:ImageMap>

    Is this different than aspx ?

    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Friday, October 17, 2008 1:23 PM
  • The page isn't displaying the asp imagemap. The image map that is working is the normal html image map that's also on the page.

    The asp image map tags are there but thats all. If you remove them it will make no difference to the page.


    Ian

    http://www.ew-resource.co.uk
    http://www.fp-resource.co.uk



    Ian Haynes
    • Proposed as answer by Ian Haynes Friday, October 17, 2008 3:25 PM
    Friday, October 17, 2008 2:06 PM
  • Wow! and here I thought it was aspx; didn't know that there was a html image map. In any event, it's doing what I want it to.
    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Friday, October 17, 2008 2:39 PM
  • There is more than one image map option available, some are in the html like those used in the tutorial at http://www.javascriptkit.com/howto/imagemap.shtml others are server side such as the asp.net control http://www.developer.com/net/asp/article.php/3528986 
    MS MVP Expression http://by-expression.com
    Friday, October 17, 2008 2:44 PM
  • Thanks for all of the great help and information!

    Thanks,
    John

    http://www.snowbird.jpwusn.org
    Friday, October 17, 2008 7:39 PM