title: Modify the "Add Colleague" panel (QuickLinkDialogForm.aspx) in Sharepoint
body: <p>I'm trying to write a code that does something different after the user push the "ok" button in the Add Colleague panel in Sharepoint 2010. For that, I've created my own page and copy the content and references of the original QuickLinksDialogForm.aspx. I've modified the calling methods so when the user clicks in "Add Colleage", my panel is open instead of the original one.</p>
  
  <p>The problem I'm getting here is I'm not getting the original behaviour of the OOB panel. This is the original panel:</p>
  
  <p><img src="https://i.stack.imgur.com/hCwUh.png" alt="Original"></p>
  
  <p>And this is what I obtain:</p>
  
  <p><img src="https://i.stack.imgur.com/iyhRv.png" alt="Custom"></p>
  
  <p>So the first thig I thought was that I should have missed some controllers but this is the original aspx page header:</p>
  
  <pre><code> &lt;%@ Page language="C#" MasterPageFile="~/_layouts/dialog.master"      Inherits="Microsoft.SharePoint.Portal.WebControls.QuickLinksDialogPage,Microsoft.SharePoint.Portal,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %&gt;
   &lt;%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
   &lt;%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="OSRVUPWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
  </code></pre>
  
  <p>And this is my custom aspx header:</p>
  
  <pre><code> &lt;%@ Page Language="C#" CodeBehind="quicklinksdialogform.aspx.cs" AutoEventWireup="true" Inherits="CustomMySite.Layouts.CustomMySite.ApplicationPage,CustomMySite,Version=1.0.0.0,
   Culture=neutral,PublicKeyToken=8ac4e08d3c1be6b0" MasterPageFile="~/_layouts/dialog.master"
   DynamicMasterPageFile="~masterurl/default.master"%&gt;
   &lt;%@ Assembly Name="Microsoft.SharePoint.Portal,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %&gt;
   &lt;%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
   &lt;%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="OSRVUPWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; 
   &lt;%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
  </code></pre>
  
  <p>There is something else I should take care of? Am I missing something obvious? Any help will be ok.</p>