.aspx page not opening as it should !
-
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.
-
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.
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.
-
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.
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...