URL OF CMSPages

Antonio Developer asked on July 5, 2017 10:54

Hello

I created a aspx Page in CMSModules/Ecommerce/CMSPages and need the URL, to do a POST Request.

In my Codebehind I defined the url as follows: string requestUrl = "http://localhost:8080/CMSPages/customPage.aspx";

I get an Error that the file doesnt exists..

Any one know the corret url?

Recent Answers


Jan Hermann answered on July 5, 2017 13:03

Where is the CMSModules/Ecommerce part of your path? Try "~/CMSModules/Ecommerce/CMSPages/customPage.aspx"

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 5, 2017 15:30

Antonio,

I'd suggest following best practices and creating a directory for your custom code within the ~/CMSModules directory for your custom module code. Then you access it like you would normally do with any other asp.net application, by the relative path.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.