CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Back to Previous page

Print topic Send  topic

Author Message
mljonzs

Posts: 124
Posted: 04/11/2007, 8:41 AM

I feel kind of dumb asking this, but there has GOT to be an easier way to do this than what I am currently doing.

How can I add a "Cancel" button to a page that will simply go back to the previous page as if the user used the browser back button rather than the cancel button?? I don't always know exactly which page to go to and have to go through a bunch of checks to figure it out when it seems like it would be much easier to just be able to jump back to the desired page somehow??

Any thoughts?

Thanks!
mlj
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message
ReneS

Posts: 225
Posted: 04/11/2007, 12:02 PM

Hi,

Little javascript:

<a href="#" onClick="history.go(-1)">Back</a>
<input type=button value="Back" onClick="history.go(-1)">

Value of -1 takes user back 1 page, value -2, two pages etc.

Thanks to: javascriptsource.com

Rene
View profile  Send private message
wkempees
Posted: 04/11/2007, 12:16 PM

From Grid to Form, the Cancel will jump back to Grid.
You also have the option to define the ReturnPage in the Properties of the
Form->Record
And of course you can do you own redirect in CCS, Help file search for
redirect
or search this forum using the Search button in the top menu.

Walter

"mljonzs" <mljonzs@forum.codecharge> schreef in bericht
news:6461d01955840b@news.codecharge.com...
>I feel kind of dumb asking this, but there has GOT to be an easier way to
>do
> this than what I am currently doing.
>
> How can I add a "Cancel" button to a page that will simply go back to the
> previous page as if the user used the browser back button rather than the
> cancel
> button?? I don't always know exactly which page to go to and have to
> go
> through a bunch of checks to figure it out when it seems like it would be
> much
> easier to just be able to jump back to the desired page somehow??
>
> Any thoughts?
>
> Thanks!
> mlj
> _________________
> Happy coding!
> mljonzs
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.