|
Subject:
|
knowing from where user entered my page?
|
|
Posted By:
|
collie
|
Post Date:
|
11/17/2003 7:56:33 AM
|
Hi,
I have a web application that uses both ASP and ASPX. I have a asp page called confirm.asp that receives the ad_id from another asp page.
the code in confirm.asp is as follows without a form: <a href="credit.aspx?ad_id=<%=(request.querystring ("ad_id")%>"> click here </a>
When the user click on the link he is directed to the aspx page that receives the ad_id to proceed with the credit transaction. The problem is that I don't want to enable the user to get to the aspx page without first been at confirm.asp. How can i know from where my user is entering my aspx page? I don't want to use sessions.
Another question: is it possible to add a picture to a submit button or make a picture function as a submit button instead of the actual button? Thanks.
|
|
Reply By:
|
planoie
|
Reply Date:
|
11/17/2003 10:32:49 AM
|
You can check Request.ServerVariables("HTTP_REFERER") for the referrer of the page. Take note of the mispelling, what I have there is correct. You can look in this value for the pagename you are expecting to see.
In ASP.Net, you use an ImageButton for a image button.
Peter ------------------------------------------------------ Work smarter, not harder.
|