title: CRM : Modal Dialog : Mscrm is not defined
body: <p>I have created a custom Modal Dialog Form for Contact Entity.
  The error occurs when I try to call <code>Mscrm.Utilities...</code> functions. </p>
  
  <p>Console (Chrome) says:
  <code>Uncaught ReferenceError: Mscrm is not defined(…)</code></p>
  
  <p>I understand that I need to someway import or register this namespace to call its functions, but idk how to do this. </p>
  
  <p>I have only following imports on my form:</p>
  
  <pre><code>&lt;%@ Page language="c#" %&gt;
  &lt;%@ Register TagPrefix="loc" Namespace="Microsoft.Crm.Application.Controls.Localization" Assembly="Microsoft.Crm.Application.Components.Application" %&gt;
  
  &lt;%@ Import Namespace="Microsoft.Crm.Utility" %&gt;
  &lt;%@ Import Namespace="System.Globalization" %&gt;
  &lt;%@ Import Namespace="Microsoft.Crm"%&gt;
  
  &lt;%@ Register TagPrefix="crm" Namespace="Microsoft.Crm.Controls" Assembly="Microsoft.Crm.Application.Components.UI" %&gt;
  &lt;%@ Register TagPrefix="sdk" Namespace="Microsoft.Crm.Application.Components.Sdk.FormControls.Web" Assembly="Microsoft.Crm.Application.Components.Sdk.FormControls" %&gt;
  &lt;%@ Register TagPrefix="frm" Namespace="Microsoft.Crm.Application.Forms" Assembly="Microsoft.Crm.Application.Components.Application" %&gt;
  </code></pre>
  
  <p>In standard Microsoft Dialog Forms the first line is like:</p>
  
  <pre><code>&lt;%@ Page language="c#" Inherits="Microsoft.Crm.Web.Sfa.ContactDetailPage" %&gt;
  </code></pre>
  
  <p>and this namespaces (Mscrm, Mscrm.Utilities, etc) I guess are coming from inherited class. But in my case I can't inherit any of this classes, cause I have custom dialog.</p>