You might go back and read the text at the bottom of page 212 and top of 213.
If you run the code you will find that the first time into the removeArticle (and removeArticle control) view there is no value for the remove parameter (You've clicked on a remove link) and this is a confirmation where you must enter yes or no to proceed.
Initially I thought this might be a case where it would have been better to have an HTTP Get controller and an HTTP Post controller, but in retrospect it makes more sense to do it the way that it is. However, maybe there should be a redirect to a different location once yes or no is selected, but that would mess with the message that displays the choice made.
Steve
Last edited by Steve S; September 22nd, 2009 at 04:29 PM..
|