mimivdg2002
MIS
I just moved a website (it is an asp application) to a new site. This site used to be a virtual directory under another website. When I moved the site to a new site, I made sure that I modified any code that was referencing files from the parent old site. For example the old setup was like this:
The site I moved was under this site and was referenced as
Now I moved childsite to be on its own and it can be accessed from
There was some code in childsite that was referencing code from parent site. For example there were references such as href="/helpdesk.asp ..." instead of href="helpdesk.asp ..." or references such as href="/childsite/error.asp ..." which I changed to href="error.asp...". I made sure that I have gone thru all the code to remove such references. The new child site works fine now except for one page.
This page is the login page. When the login href is clicked, it is supposed to go to welcome.asp. The code says:
<a href="javascript: submit()" class="btnSubmit">Login</a>. The submit javascript performs validations and uses the following code to submit the form:
document.frmLogin.PostBack.value = "1";
document.frmLogin.submit();
When the form is submitted, it goes back to the old parentsite and I don't understand why it's doing that. It goes back to instead of Can anybody tell me why?
Thanks
M
The site I moved was under this site and was referenced as
Now I moved childsite to be on its own and it can be accessed from
There was some code in childsite that was referencing code from parent site. For example there were references such as href="/helpdesk.asp ..." instead of href="helpdesk.asp ..." or references such as href="/childsite/error.asp ..." which I changed to href="error.asp...". I made sure that I have gone thru all the code to remove such references. The new child site works fine now except for one page.
This page is the login page. When the login href is clicked, it is supposed to go to welcome.asp. The code says:
<a href="javascript: submit()" class="btnSubmit">Login</a>. The submit javascript performs validations and uses the following code to submit the form:
document.frmLogin.PostBack.value = "1";
document.frmLogin.submit();
When the form is submitted, it goes back to the old parentsite and I don't understand why it's doing that. It goes back to instead of Can anybody tell me why?
Thanks
M