Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old November 17th, 2003, 08:56 AM
Authorized User
Join Date: Oct 2003
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old November 17th, 2003, 11:32 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:40 AM
Make user entered field an integer sswingle Classic ASP Basics 4 April 10th, 2006 11: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 07:21 AM

All times are GMT -4. The time now is 07:28 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.