Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. .aspx page not opening as it should !

.aspx page not opening as it should !

Scheduled Pinned Locked Moved ASP.NET
csharphtmlvisual-studiocomquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Razanust
    wrote on last edited by
    #1

    I created a simple aspx page on Visual Studio 2008 Web Developer using VB. It had three textboxes and a command button and used to do some calculations upon the given data on pressing the command button. It worked fine when debugged and run. Then i created a html page and made a simple hyper link to the aspx page. The link is opening the page but not displaying its contents but displaying the code instead. Any Solutions??? Visit www.raza.najam.com.pk and click the ASP Page.

    W M 2 Replies Last reply
    0
    • R Razanust

      I created a simple aspx page on Visual Studio 2008 Web Developer using VB. It had three textboxes and a command button and used to do some calculations upon the given data on pressing the command button. It worked fine when debugged and run. Then i created a html page and made a simple hyper link to the aspx page. The link is opening the page but not displaying its contents but displaying the code instead. Any Solutions??? Visit www.raza.najam.com.pk and click the ASP Page.

      W Offline
      W Offline
      www Developerof NET
      wrote on last edited by
      #2

      You may not have configured your website folder as a virtual directory. Hope that helps...

      When you fail to plan, you are planning to fail.

      1 Reply Last reply
      0
      • R Razanust

        I created a simple aspx page on Visual Studio 2008 Web Developer using VB. It had three textboxes and a command button and used to do some calculations upon the given data on pressing the command button. It worked fine when debugged and run. Then i created a html page and made a simple hyper link to the aspx page. The link is opening the page but not displaying its contents but displaying the code instead. Any Solutions??? Visit www.raza.najam.com.pk and click the ASP Page.

        M Offline
        M Offline
        mihsathe
        wrote on last edited by
        #3

        Understand that all the server pages like .asp , .aspx , .php etc can only be served by your server. In this case, your IIS server. In case you want to acces your page on localhost from outside Visual Studio, go to "C:/inetpub/wwwroot/" and then address of your page will be as : http://localhost:port/foldername/file.aspx..It can be then accessed by your HTML pages in same folder. If you want to avoid all this trouble, simply put that HTML page in same project of VS. Then everything will be fine...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups