Redirect after DeleteCommand from FormView
Posted on 2008-10-03
I have a page with a FormView control. I have a linkbutton at the bottom that executes the DeleteCommand for the current record being viewed. The SQL works when I test it in the expression builder. What I would like to see happen is for the record to be deleted and for the user to be redirected to another page (which shows all records). Whenever I put the URL in the PostBackUrl property, the user is redirected but the record is not deleted. It seems like the redilrection is happening before the delete command. Any ideas?