title: Property '_trigger' error - Pop up dialog in Jquery Mobile and MVC 3
body: <p>The following code inside a MVC 3 view generates an error <strong>Error: Unable to get value of the property '_trigger': object is null or undefined</strong> in IE9 when I click on the input button.
  This is the view page:</p>
  
  <pre><code>@{    
       Layout = "~/Views/Shared/_Layout.cshtml";
  }
  &lt;script type="text/javascript"&gt;
      $(".prePaidBtn").click(function (event) {
          $.mobile.changePage($('#ui-dialog-error'), 'pop', false, true);
      })
  &lt;/script&gt;
  &lt;input id="prepaidbtn1" class="prePaidBtn" type="button" value="1 cake" /&gt;
  &lt;div data-role="page" id="ui-dialog-error"&gt;
      &lt;div data-role="header"&gt;
          test            
      &lt;/div&gt;
      &lt;div data-role="content"&gt;            
          test
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried changing the data-role to dialog but to no avail...
  _Layout page is as follows:</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  
      &lt;html lang="en-GB"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;title&gt;TestApp&lt;/title&gt;
          &lt;link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /&gt;    
          &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /&gt;
          &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"&lt;/script&gt;
          &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
          &lt;div data-role="page"&gt;
              &lt;div data-role="header"&gt;
                  &lt;h1&gt;@ViewBag.HeaderString&lt;/h1&gt;
              &lt;/div&gt;
              &lt;div data-role="content"&gt;
                  @RenderBody()
              &lt;/div&gt;
         &lt;/div&gt;
     &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  
  <p>The debugger shows that c.data("page") is undefined... Google couldn't help this time around hence any ideas would be appreciated... Thank you...</p>