Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
Cancel button
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Veari
New Member
Join Date:
Sep 2008
Posts:
1
#1
Cancel button
Sep 25 '08, 12:36 AM
Hi, I'm using ASP.NET to create a website. I want to click on the Cancel button and return to the previous page. Please help.
Thanks, Veari
balabaster
Recognized Expert
Contributor
Join Date:
Mar 2007
Posts:
798
#2
Sep 25 '08, 02:25 AM
In your button's onclick property, set the value to "javascript : history.go(-1);", like so:
<button id="myButton" onclick="javasc ript: history.go(-1);" text="Back">
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment