I'm using ASP.NET 2.0 and am modifying a site. I copied the site files to a
subdirectory to test and (hopefully) not interfere with the live version.
I am running a page in the subdirectory that should submit to itself:
http://www.<site>.com/dev/QuoteGuestInfo.aspx. The Page directive is:
<%@ Page Language="VB" MasterPageFile="~/dev/masterfile.master"
AutoEventWireup="false" CodeFile="QuoteGuestInfo.aspx.vb"
Inherits="QuoteGuestInfo" %>
When I do a View Source on the page, I see the <form> tag as:
<form name="aspnetForm" method="post" action="QuoteGuestInfo.aspx"
id="aspnetForm">
When I submit the form, I get a "The resource cannot be found." error, with
Requested URL: /QuoteGuestInfo.aspx.
So it looks like it's going to the main directory instead of my dev
subdirectory. Is there a way to make the post go back to the dev
subdirectory instead of the main dir?
(I did a search but I'm new enough on this topic I'm not quite sure what to
search on.)
Thanks for any help,
Steve