Showing posts with label inertitemtemplate. Show all posts
Showing posts with label inertitemtemplate. Show all posts

Tuesday, March 27, 2012

abort insertcommand

hey.

I have a formview - inertitemtemplate. In here I have a button with CommandName="Insert". In code behind under FormView1.ItemInserting I want to be able to abort the inserting in some cases. Is this possible?

Simple. In the event, simply do: e.Cancel = true.