HaveTrouble
Programmer
My website has 2 types of user setup - customer and seller. My server has 1 folder with all ASP available to customer and 1 folder for seller. There are some pages (view invoice) common to both users that I wish to put into a common folder so I only keep 1 source code. Customer and seller can search for customer # and pull up a list of invoices. Then click specific invoice # to view invoice.
So my common folder will include:
1. a search page that will post to itself to display a list of invoices matching the search criteria
2. view invoice page.
I put a invoice.asp to customer/vendor folder to include special formating for each user type:
<!-- include file="format.asp" -->
<!-- include virtual="\common\invoice.asp" -->
My \common\invoice.asp looks like:
<%
if request("custname") = "" then
%>
<form action=searchaccount.asp method=post>
<input type=text name=custname>
<input type=submit name=test value=test>
</form>
<%
else
.... SQL TO SEARCH INVOICES AND DISPLAY RECORDSET
end if
%>
However, when I click the button, it looks for the searchaccount.asp under customer or vendor account. How should I solve this problem ?
Thanks.
So my common folder will include:
1. a search page that will post to itself to display a list of invoices matching the search criteria
2. view invoice page.
I put a invoice.asp to customer/vendor folder to include special formating for each user type:
<!-- include file="format.asp" -->
<!-- include virtual="\common\invoice.asp" -->
My \common\invoice.asp looks like:
<%
if request("custname") = "" then
%>
<form action=searchaccount.asp method=post>
<input type=text name=custname>
<input type=submit name=test value=test>
</form>
<%
else
.... SQL TO SEARCH INVOICES AND DISPLAY RECORDSET
end if
%>
However, when I click the button, it looks for the searchaccount.asp under customer or vendor account. How should I solve this problem ?
Thanks.