WebSite X5Help Center

 
Yvette C.
Yvette C.
User

How to test asp pages??  en

Autore: Yvette C.
Visite 1783, Followers 1, Condiviso 0  

Hello, I've  created a website and I have not uploaded it yet.  During my local testing, everything works as it should, except the two asp pages I created.  The preview shows the page and the objects.  However, when I submit (which is POSTing to another asp page) It cannot find the page.  I've tested that the problem has to do with the .asp extension by changing the extension to html. Although the asp code does not work, the page is found.  I even created a stand alone button that I used just to open the asp page, and I still go the message that the file was not found.    Again, if I change the extension to html, the page is found, so the problem is not with the file name.  The problem is also not the code in the asp page, since it never attempts to process it....since it never finds the page.  I am assuming since asp pages are run on the server, the project may have to be exported before things will work, however, how can I test asp pages locally to make sure everything is working before I export?

Postato il
5 RISPOSTE
Andre E
Andre E
Moderator

Try in the preview the button top right preview webpage on another browser.

Select one of the browsers and test with these. i hope one of them will work.

Best Regards

Leggi di più
Postato il da Andre E
Yvette C.
Yvette C.
User
Autore

Hi Andre, thanks for the suggestion.  I tried another browser (chrome) and I still go the page not found message.  As I mentioned, I can preview the page(s) - (I have two .asp pages that I'm trying to test), but if I try to open it through any other means, it will not work.  I have not included any folder structure in the file name "confirmationpage.asp."   As I mentioned, if I change the file time to html, the page will open, but of course no code will be processed.  This is my first attempt in X5 to use server pages.  I am a developer and I am familiar with the concept and what should happen.  I am not sure how X5 file structure opens files.  When I browse to my local file storage path, I can see both .asp pages along with the other HTML pages in the "upload" folder, so they're available, but cannot seem to be found. Please help!!! I'm at a loss!

Leggi di più
Postato il da Yvette C.
Andre E
Andre E
Moderator

Sorry Yvette,


The above was just a way of trying to help you, i have no experience with asp pages.

you could try online to test, and delete it later if needed.

If I test x5 asp page it opens also as html instead of asp.

Maybe Incomedia can help, but they don't work in the w-ends.

Leggi di più
Postato il da Andre E
Incomedia
Stefano G.
Incomedia

Hi Yvette.

Did you set the whole page as ASP from step 3?

If you check the links in the code directly, do they link to the asp page or do they link to an html one?

It could be helpful if you could provide a couple screenshot of what you're seeing and that show the way the pages were configured so that we can try to better understand what is going on

Let me know

Stefano

Leggi di più
Postato il da Stefano G.
Yvette C.
Yvette C.
User
Autore

I will try everything again and capture some screen shots.  However, as Andre pointed out, it doesn't work for him either, which means it is not something within my code, some something in the way X5 is handling the asp pages.

Leggi di più
Postato il da Yvette C.