ASP.net page only shows code when I preview in FrontPage 2003

Discussion in 'C#' started by lespaul00, Jun 18, 2008.

  1. #1
    Hello,

    So, I created a sample aspx page in FrontPage 2003. It looks fine in design view, but when I click "Preview in browser", only the code for the page appears in my browser! How do I get it to appear as it does in design view? Do I need to install something on my local machine to get this to work?

    Thanks.
     
    lespaul00, Jun 18, 2008 IP
  2. QuEST

    QuEST Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    install IIS in windows, you can do it by going to control panel add/remove programs/windows components

    It will create a folder inetpub on your installed drive, you can then upload your files to X:\Inetpub\wwwroot

    and view it by opening http://localhost or http://127.0.0.1 frmo internet explorer..

    If you are starting to develop in ASP.NET then you can use visual studio, which will allow you to create, edit and view your pages without having to install IIS as it will start a webserver for previewing when you debug.

    Regards
     
    QuEST, Jun 18, 2008 IP
    lespaul00 likes this.
  3. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks.

    I installed the IIS by going through control panel. I also copied my website contents to the Inetpub/wwwroot folder. I went to http://localhost to view.

    To create my website, I just created a test in FrontPage 2003 using the "database interface wizard". So, it first created an html page that has links to the 3 different .aspx pages (results, submission form, and database editor). When I preview via http://localhost, the .html page appears fine, the database editor page comes up, but when I click the results or submission form pages, it's still just code! I even installed the FrontPage server extensions.

    What am I doing wrong? I want to be able to test my pages locally without having to upload them to a web server! And also, why can't I "preview in browser" within FrontPage? This really isn't very user-friendly :(

    I miss Dreamweaver and Coldfusion :(
     
    lespaul00, Jun 20, 2008 IP
  4. QuEST

    QuEST Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think if your not a programmer, you must try the asp.net maker
     
    QuEST, Jun 20, 2008 IP
  5. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    You should give permission to the new website from Admin tools - > IIS
    Then in the Browser enter the full path i.e. http://localhost/directory/default.aspx
    From your previous reply it's obvious that you were opening the root of the localhost.
    Give it a try as suggested and let me know if you need more help.
    I would suggest Visual Web Developer 2008 Express ... ones you got this IDE on your computer you can let it to does the job for you instead going in IIS and set up stuff by yourself.

    HTH
    Regards :)
     
    yugolancer, Jun 21, 2008 IP