Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 17th, 2003, 08:56 AM
Authorized User
Join Date: Oct 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default knowing from where user entered my page?


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?

Old November 17th, 2003, 11:32 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

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.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knowing the Browser Type me_zeta HTML Code Clinic 1 November 13th, 2006 01:44 PM
How knowing it is an integer? rtr1900 Classic ASP Basics 1 October 5th, 2006 07:40 AM
Make user entered field an integer sswingle Classic ASP Basics 4 April 10th, 2006 10:09 PM
Knowing File Path x_ray VB.NET 2002/2003 Basics 8 February 15th, 2006 04:12 PM
How to accept apostrophe entered by user karjagis Access ASP 0 April 6th, 2004 06:21 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.