Posting to Form in Subdirectory

G

Guest

Hi all. I have experience with C#/VB.NET and ASP Classic, but am very new to
ASP.NET.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top