Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Response.Redirect for a beginner
I'm a beginner in a web server side class. I need to post my homework and the text box for the link for the teacher is too short. He suggested I use some code to redirect to the correct page. So, I created a page called r.asp that simply says <%Response.Redirect = "HomeworkProgress/homeworkProgress.asp"%> but it doesn't work. r.asp is in the root directory. The page I need the user to get to is in the directory HomeworkProgress which is in the root directory. Then the page is homeworkProgress.asp. So then I added <%Response.Buffer = true%> to the top, since my book said this may be important to use with the Response.Redirect method. It still doesn't work. What am I doing wrong? Thanks, Suzy