http status code 404 - Custom 404 pages not being able to postback due to relative path issues -


My site currently executes custom 404 pages that we map to IIS. Therefore, when a user does something like www.mysite.com/foo/bar/doesnotexist, it will execute a 404.aspx URL. It works great, but while inspecting HTML, the form URL is relative:

& lt; Form method = "post" action = "404.aspx? 404% 3bhttps% 3a% 2f% 2ftesterver% 3a443% 2ffoo% 2fbar% 2fdoesnotexist" onsubmit = "javascript: return WebForm_OnSubmit ();" id = "aspnetForm" & gt;

If you are closely watching that the URL is posting on 404.aspx, but it is a relative path, then it is trying to execute if we have a postback www .mysite.com / foo / bar / doesnotexist / 404.aspx. How do I properly get a postback from my 404 pages executed? (Www.mysite.com/404.aspx)

Thank you.

Victor,

Your question is a duplicate, so I think you Maybe you will get the answer.

Since you are new here, so hopefully the closest Nazi will make you a little sluggish. In fact, when you write a question, then your question should have a list of similar questions as pop-up. If you see a question that seems like it can answer itself, then follow the link and check it before posting. 10 to 9 times your question can already be answered

Best wishes to find your answer, I think there should be very good information on that link.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -