UIPAB problems, please help
-
I realise this is a somewhat specialized question, but am hoping that someone can shed some light on this for me... I am using Microsoft's UIP Application Block in an ASP.NET project. I have a grid, with code-behind that looks like this:
OnStartTask("EditItemTask", myArgs);
where myArgs depend on the grid item that was clicked. This then successfully starts the EditItem Task. My problem is that if the user presses the browser's back button, and then selects another item from the grid, then the same (previous) item will display instead of the selected one. In fact, if they execute ANYLinkButton
, it will do the same thing. After some debugging, I determined that my form's codebehind is not getting executed. This is because the WebFormView (from which the page inherits) determines that "EditItemTask" is the active task, and just redisplays the appropriate view for that task. So I guess my question is, how do I get a new task to be created every time I click a codebehind, rather than just resuming the old one? I am on the brink of re-writing this app to use plain-old querystrings, session variables etc, because of the pains of using UIPAB.