Hi
I have 2 update buttons in my FormView ('Apply' and 'OK'). I want both
buttons to update the data source but the 'OK' button should redirect
afterwards.
I can see which button is clicked in the ItemCommand event but I can't
redirect from here because the ItemUpdated event hasn't fired yet.
I can put a variable in the code-behind class which is gets the
CommandArgument in the
ItemCommand event and then read it in the ItemUpdated event but this doesn't
seem to
follow the event model concept very well. Is there a better or more
appropriate technique I could use?
Thanks
Andrew
I have 2 update buttons in my FormView ('Apply' and 'OK'). I want both
buttons to update the data source but the 'OK' button should redirect
afterwards.
I can see which button is clicked in the ItemCommand event but I can't
redirect from here because the ItemUpdated event hasn't fired yet.
I can put a variable in the code-behind class which is gets the
CommandArgument in the
ItemCommand event and then read it in the ItemUpdated event but this doesn't
seem to
follow the event model concept very well. Is there a better or more
appropriate technique I could use?
Thanks
Andrew
Comment