What is the difference between the two?
I have a page "one" with a button using Response.Redire ct("pagetwo.asx p") to
go to the next page.
On page two I have a button using Response.Redire ct("pageone.asp x") to go
back to page one.
When I view page one, select some information, then go to page two, and then
select the back button (using the response.redire ct) none of my selections
remain. If I just use the back button of the web browser everything works
fine.
Anything I am doing wrong?
Thanks. 3 4148
Kevin is right.
To get it to work like the back button, Instead of using Response.Redire ct
to go back to page one you could execute some client side javascript like
this:
history.go(-1);
So you could have a "Back" anchor tag in your HTML that looks like this:
<a href='javascrip t:history.go(-1);'>Back</a>
Here's more info: http://www.devguru.com/Technologies/...istory_go.html
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Michelle A." <me@me.com> wrote in message
news:OH******** ******@TK2MSFTN GP09.phx.gbl... What is the difference between the two?
I have a page "one" with a button using Response.Redire ct("pagetwo.asx p")
to go to the next page.
On page two I have a button using Response.Redire ct("pageone.asp x") to go back to page one.
When I view page one, select some information, then go to page two, and
then select the back button (using the response.redire ct) none of my selections remain. If I just use the back button of the web browser everything works fine.
Anything I am doing wrong?
Thanks.
Cool..
I will take a look at that on Monday..
Thanks.
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:uJ******** ******@TK2MSFTN GP09.phx.gbl... Kevin is right. To get it to work like the back button, Instead of using Response.Redire ct to go back to page one you could execute some client side javascript like this: history.go(-1);
So you could have a "Back" anchor tag in your HTML that looks like this: <a href='javascrip t:history.go(-1);'>Back</a>
Here's more info: http://www.devguru.com/Technologies/...istory_go.html
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net Hire top-notch developers at http://www.able-consulting.com "Michelle A." <me@me.com> wrote in message news:OH******** ******@TK2MSFTN GP09.phx.gbl... What is the difference between the two?
I have a page "one" with a button using
Response.Redire ct("pagetwo.asx p") to go to the next page.
On page two I have a button using Response.Redire ct("pageone.asp x") to
go back to page one.
When I view page one, select some information, then go to page two, and then select the back button (using the response.redire ct) none of my
selections remain. If I just use the back button of the web browser everything
works fine.
Anything I am doing wrong?
Thanks.
One caution about using JavaScript history, though: With ASP.Net it can have
unexpected results, as ASP.Net WebForms submit to themselves, and have
different ViewState data in them at different times.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
The more I learn, the less I know.
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:uJ******** ******@TK2MSFTN GP09.phx.gbl... Kevin is right. To get it to work like the back button, Instead of using Response.Redire ct to go back to page one you could execute some client side javascript like this: history.go(-1);
So you could have a "Back" anchor tag in your HTML that looks like this: <a href='javascrip t:history.go(-1);'>Back</a>
Here's more info: http://www.devguru.com/Technologies/...istory_go.html
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net Hire top-notch developers at http://www.able-consulting.com "Michelle A." <me@me.com> wrote in message news:OH******** ******@TK2MSFTN GP09.phx.gbl... What is the difference between the two?
I have a page "one" with a button using
Response.Redire ct("pagetwo.asx p") to go to the next page.
On page two I have a button using Response.Redire ct("pageone.asp x") to
go back to page one.
When I view page one, select some information, then go to page two, and then select the back button (using the response.redire ct) none of my
selections remain. If I just use the back button of the web browser everything
works fine.
Anything I am doing wrong?
Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jenny |
last post by:
Need urgent help for an unsolved problem. In our ASP web application,
we creat a Back button and if user click on this button, it execute
history.go(-1) to go back to the previous page. All our users use IE
6.0 and most of them don't have problem with this button. But one user
reported everytime he click on this button, there is a pop-up window
shows up and ask him refresh and reload the page, after he clicks OK,
the previous page will be...
|
by: Harsh Thakur |
last post by:
Hi,
I'd like to know the performance related differences between
Response.Redirect and Server.Transfer.
I'd like to redirect the user to a different page.
I can either do a Response.Redirect("URL") or a Server.Transfer("URL").
So I'd like to find out which is more efficient/better.
Can anyone please tell me or give any pointers to links on the web?
Thanks & Regards
|
by: MarkMurphy |
last post by:
I have a simple export.aspx page that allows a user to fill in a form
to export some data. The postback logic writes the data to the
response stream. I have two small issues:
1) The data is tab-delimited text. If I set
Response.ContentType="plain/text", the format is fine, but an
Open/Save dialog will appear on the IE6 browser, which I don't want.
If don't set the ContentType at all, the dialog goes away, but the
browser removes the...
|
by: Russ |
last post by:
My web app writes some binary data to a file at the client site via
Response.Write and Response.BinaryWrite. This action is accomplished
in response to a button click, with C# code behind as follows:
private void SubmitButton_Click (object sender, System.EventArgs e)
{
// Set up the response to write the print file to the client
Response.Clear ();
Response.AppendHeader ("Content-Disposition",
"filename=WebPrint.prn");
|
by: Jim in Arizona |
last post by:
I have a site that uses frames. I made an aspx form with an asp:button
control with Onclick=test. The test sub is:
Sub Test(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Redirect("http://webserver/policies/pppindex.htm target=_blank")
End Sub
Of course, this will not work. Is there some way I can get a similar result
| |
by: john |
last post by:
The standard method to transmit a file from an aspx page to a browser
is to stream the file to the response then end the response. The HTML
code generated by the aspx page is discarded, and the browser displays
or offers to save the binary file instead.
I would like to have the browser accept and display the revised HTML
code as well as offering to open or save the attached file. This
SHOULD be possible using a multipart MIME format -...
|
by: venner |
last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET
2.0. The website makes use of a central authentication service (CAS)
provided at the university I work for. Each page checks a session
variable, and if it is not present, does a Response.Redirect to a
webpage for the CAS passing a url parameter for the url to post back
to. The CAS provides a page for the user to log into, validates the
username and password, and then...
|
by: Paul Furman |
last post by:
I'm setting up credit card payment through authorize.net and they have
the option to send a POST string back to my site once complete. I'm not
sure how to proceed. They don't have much to read about this, their tech
support seemed to think I've got the general idea though & said I might
have have my hosting server set up permissions to recieve POST data that
way.
Let me paste their explanation:
-----------
Gateway Response API
|
by: waqasahmd |
last post by:
Hi,
i have a signup.aspx page on which the user get registered and response.redirect to the nextpage.aspx
On the nextpage.aspx there is a back button on which has on click event
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("signup.aspx")
}
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |