[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

Perform Undo functionality using C#

I need to perform 'Undo' functionality for Webforms using C#/VB.Net.Please let me know how to do the same.Thanks in advance!!
0
mis_understood
Asked:
mis_understood
  • 2
  • 2
  • 2
1 Solution
 
KelmenCommented:
"Undo" for WebForm! Wow, that's quite ambitious!

As much as I awared, that's no such thing in API. Unless through app/sys design.

Maybe you are refering the "press the Esc key" or like the old HTML "reset" button function? A one-step-back-only undo?
0
 
mis_understoodAuthor Commented:
Undo should actually undo only the last performed action.I actually need to build a UI prototype and HAVE to implement this functionality.Any ideas???
0
 
KelmenCommented:
Dunno about the degree of your requirements.

As you mentioned "the last performed action", then you need define what's and how to capture/stage what action is considered as last-performed.

In my assumption, you can say by click on a "Save" button, is the check point of the so called last-performed. Hence here you probably need to capture the last stage/state of the data whenever the Save is clicked.

User dododo, Save, your app persist the state.
User dododo, Save, your app persist (overwrite) the state.
User dododo, Undo, your app retrieve the persisted state.
User dododo, Submit, your app commit the whatever

HTH
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
JigitCommented:
Undo functionality already exists in IE. Try typing something inside <INPUT type="text" /> element or in TEXTAREA element then click Ctrl+Z.

HTH,
Jigit
0
 
mis_understoodAuthor Commented:
Hi Jigit,
I need to do this in button click,can you plz b lil more clear in what I should be doing coz Im still not clear with what you have suggested...thanks!
0
 
JigitCommented:
mis_understood, one can actually undo programmatically. There is an interesting implementation of Undo and much more stuff: http://users.ox.ac.uk/~pault/iewedit/  IMHO, this question refers to Javascript  area.

HTH,
Jigit
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now