Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » Help - Web Page Return


Help - Web Page Return

Reply
  #1 (permalink)  
Old 10-27-04, 10:26 PM
tedN tedN is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Help - Web Page Return

New user... Need help or sample code on how to program a Web page button that when "clicked", will return you to the previous (last) Web Page displayed.
Reply With Quote
  #2 (permalink)  
Old 10-27-04, 11:51 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Best done with javascript.

Code:
 <INPUT TYPE="button" VALUE="Back" onClick="history.go(-1)">
Reply With Quote
  #3 (permalink)  
Old 10-28-04, 12:16 AM
tedN tedN is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript

How and where is this javascript inserted?
Reply With Quote
  #4 (permalink)  
Old 10-28-04, 01:12 AM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
where you want the button to be.
Reply With Quote
  #5 (permalink)  
Old 10-28-04, 10:35 AM
tedN tedN is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
VB.Net

The page that I want to insert the "Back" button is an .aspx web page

<% @ Page Language="vb" AutoEventWireup="false" Codebehind="seq1.aspx.vb"

I can not figure out how to program a Back button in this environment.... Can Java script be mixed in with VB? If so, how do I go about doing it? If not, what VB code could I use to perform the same thing?

Help!
Reply With Quote
  #6 (permalink)  
Old 10-28-04, 04:09 PM
tedN tedN is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Found solution

Used the HTML button control with the following code:
<input type=button value=Back onclick="javascript:history.back(1);">
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM


All times are GMT -5. The time now is 02:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.