title: SitecoreEventArgs Result.Cancel = true not Canceling the event
body: <p>In the sitecore <code>Content Editor</code> I want to cancel the adding of an item.So I used the <code>Event Handler</code> <code>item:added</code>and wrote a method to cancel the event.. But its now working, I have spending so much effort but no clue. </p>
  
  <p>Here is the code: </p>
  
  <pre class="lang-csharp prettyprint-override"><code> public void MoreThenOneAddressAllowed(object sender, EventArgs args)
   {
       var item = Event.ExtractParameter&lt;Item&gt;(args, 0);
  
       if (item.TemplateID.ToString() == Settings.GetSetting("AddressEntryTemplateID"))
       {
          if (item.Parent.Fields["More than one address allowed"] != null &amp;&amp; item.Parent.Fields["More than one address allowed"].Value != "1" &amp;&amp; item.Parent.Children.Count &gt;= 1)
          {
              SitecoreEventArgs evt = args as SitecoreEventArgs;
              evt.Result.Cancel = true;
              Sitecore.Context.ClientPage.ClientResponse.Alert("More than one address not allowed under this item!!");
          }
       }   
   }
  </code></pre>
  
  <p>Here the entry in the configuration file: </p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;event name="item:added"&gt;
          &lt;handler type="EventHandlers.CompanyEventHandler" method="MoreThenOneAddressAllowed" /&gt;
        &lt;/event&gt;
  </code></pre>
  
  <p>I can see the message in the content editor. But the item is also added, some how I want to stop the adding of item.</p>