473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

redirect to a new page on button click

1
Hi..

I have two pages page1.php & page2.php. I also have a link in page1.php that will take me to page2.php. Now, there is a button in page2.php which should take the user to page1.php upon clicking.

Any one could help me to accomplish this please?

I am not so sure if button is a good option to use here instead of link. But I initially tried using link in page2.php also (which will take me to page1.php). But I need to refresh my page1.php each time I click the link and I couldn't do that though I tried. So, I am thinking of using button now.

I am new to this. Not sure if this is so stupid a question to ask..

Thanks for your help..
Feb 6 '10 #1
3 4875
Dormilich
8,658 Expert Mod 8TB
usually a link does call a refreshed version, unless you employ some kind of caching mechanism. and a button should not behave differently (in principle) than a link. it also requires JavaScript to work.
Feb 6 '10 #2
kovik
1,044 Expert 1GB
Forced browser refresh and a link sometimes work differently. Depends on the browser's settings. However, this normally only affects external entities like images and CSS files.
Feb 6 '10 #3
waqasahmed996
160 100+
you can use JavaScript for that. but i am not sure that its effect will different than using a link
Feb 6 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
6
by: DotNetGruven | last post by:
I've got a page that does a search... There is an ImageButton on it that allows the user to reset the search. The Click Handler for the button clears out the Data and then redirects to the same...
3
by: Miguel Dias Moura | last post by:
Hello, in an ASP.net / VB page i created a form with a button. When the button is clicked i want to redirect to a new page. I have the following: .... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML...
2
by: Brian | last post by:
I'm trying to response.redirect to another page on a button click event and I get an error message stating that the thread was being aborted (if I trap for the error that is...) I've researched...
2
by: Stuart | last post by:
Hi There I am using frames in an .asp application. I have a constant Banner across the top (an .htm file), a variable menu down the left and a main body (both .aspx) I have added a file...
4
by: bnob | last post by:
In a Button clik event I have this code at the end of the event Response.Redirect("Page.aspx") But in this event I must show a message before redirect to the Page.aspx. I use to show Message...
3
by: neil_pat | last post by:
I have a stored procedure which returns a value of between 0 and 4. I want the user to press a button to receive feed back on their last input. The save button takes the input and saves it to...
4
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches....
4
by: JDS | last post by:
I am a newbie to asp.net but have done traditional vb, asp and vb.net - please forgive any dumb questions! As a test I have a very simple page (Default.aspx) with a single button which then...
7
by: seanmatthewwalsh | last post by:
Hi I have a page (default.aspx) that pulls it's HTML from a database. I then have a "content management" page (editpage.aspx) that allows the user to edit the HTML in the database. When the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.