PDA

View Full Version : go back previous page in C#



fishjelly
September 8th, 2008, 04:14 AM
How to go back the previous page in C# with all the data display in previous page still remain?...(without using javacript)...Thanks!...

kirupa
September 8th, 2008, 04:18 AM
Without JavaScript? I don't think that it is possible.

Also, I am assuming you mean Silverlight, but remember that "Page" is valid in WPF as well when dealing with the Navigation classes :)

fishjelly
September 8th, 2008, 04:53 AM
I am not using Silverlight, just using Visual Studio 2005....
I use Response.Redirect("previous_page.aspx");
this make the page load again so cannot display back the previous view...
There is really no other methods in C# without javacript?
Thanks...

kirupa
September 8th, 2008, 02:04 PM
Visual Studio 2005 is the IDE - an application that allows you to create other applications. Silverlight is a target runtime much like WinForms, WPF, etc. You can use VS 2005 - albeit a bit hackishly - to create projects that allow you to create outputs for all three.

Based on your code, is this a ASP.net application?

fishjelly
September 8th, 2008, 09:03 PM
I am using asp.net to create web site...

Thanks for your help.
=)

alanhz
September 17th, 2008, 08:04 AM
mark