title: doPostBack not firing
body: <p>I'm following the next project: <a href="http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010-context-menu-item-with-custom-code" rel="nofollow noreferrer">http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010-context-menu-item-with-custom-code</a></p>
  <p>ELEMENTS.XML</p>
  <pre><code>   &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
     &lt;Elements xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
       &lt;CustomAction Id=&quot;SPTest.CustomMenuItem.ButtonClicked&quot;
               RegistrationType=&quot;FileType&quot;
              RegistrationId=&quot;dtsx&quot;
              Location=&quot;EditControlBlock&quot;
              ImageUrl=&quot;/_layouts/IMAGES/DOCLINK.GIF&quot;
              Sequence=&quot;600&quot;
              Title=&quot;Execute Package&quot;
              Description=&quot;Executed Selected Package&quot;
              ControlAssembly=&quot;SPTest.CustomMenuItem, Version=1.0.0.0, Culture=neutral,    PublicKeyToken=beb14bc625e99e7f&quot;
              ControlClass=&quot;SPTest.CustomMenuItem.CustomItemAction&quot;
              &gt;
  &lt;UrlAction Url=&quot;javascript:__doPostBack('SPTest.CustomMenuItem.CustomItemAction',  {ItemId});&quot; /&gt;
  &lt;/CustomAction&gt;
   &lt;/Elements&gt;
  </code></pre>
  <p>PACKAGE.TEMPLATE.XML</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
   &lt;Solution xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
   &lt;Assemblies&gt;
    &lt;Assembly Location=&quot;SPTest.CustomMenuItem.dll&quot;  DeploymentTarget=&quot;GlobalAssemblyCache&quot;&gt;
      &lt;SafeControls&gt;
        &lt;SafeControl Assembly=&quot;SPTest.CustomMenuItem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=beb14bc625e99e7f&quot; 
                   Namespace=&quot;SPTest.CustomMenuItem&quot; TypeName=&quot;*&quot; Safe=&quot;True&quot;        SafeAgainstScript=&quot;False&quot; /&gt;
      &lt;/SafeControls&gt;
    &lt;/Assembly&gt;
  &lt;/Assemblies&gt;
  &lt;/Solution&gt;
  </code></pre>
  <p>So... In Web.config file we can find our assembly in SafeControl</p>
  <p>CLASS TO EXECUTE</p>
  <pre><code>   using System.IO;
     using System;
     using System.Collections.Generic;
     using System.Linq;
     using System.Text;
     using Microsoft.SharePoint;
     using Microsoft.SharePoint.WebControls;
  
      namespace SPTest.CustomMenuItem
      {
          public class CustomItemAction : SPLinkButton
          {
              protected override void OnLoad(EventArgs e)
              {
                  this.EnsureChildControls();
                  base.OnLoad(e);
                  if (this.Page.Request[&quot;__EVENTTARGET&quot;] ==   &quot;SPTest.CustomMenuItem.ButtonClicked&quot;)
                  {
                      int itemId = Convert.ToInt32(this.Page.Request[&quot;__EVENTARGUMENT&quot;]);
                      System.IO.TextWriter writer = new  StreamWriter(@&quot;C:\XXXXX\XXXXX\XXXXX\custommenuoutput.txt&quot;, true);
                      writer.WriteLine(&quot;Event Fired at:&quot; + DateTime.Now.ToLongTimeString() + &quot;: Item ID:&quot; + itemId.ToString());
                      writer.Close();
                  }
              }
          }
      } 
  </code></pre>
  <p>As you can see, the objective is to execute a SSIS package that is allocate on Sharepoint. A ECB menu with Execute Package option appeared in all files that have dtsx type. Therefore when I clicked in this bottom, the event doesn't work... I don't know what I have to do... Any helped will be appreciated.</p>