title: Need help with a simple ASP.NET ModalPopupExtender example
body: <p>I'm new to ASP.NET and I'm trying to get this Ajax ModalPopupExtender working. This is an example i found on the net, but nothing happens when btnpopup is clicked.</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ModalTestProject._Default" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;Untitled Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form id="form1" runat="server"&gt;
  
  &lt;asp:scriptmanager id="ScriptManager1" runat="server"&gt;
  &lt;/asp:scriptmanager&gt;
  
  &lt;asp:Button ID="btnpopup" runat="server" Text="Button" /&gt; 
  
  &lt;ajaxToolkit:ModalPopupExtender ID="mpe" runat="server" TargetControlID="btnpopup" PopupControlID="pnlpopup" 
      CancelControlID="btnCancelpopup" EnableViewState="true" DropShadow="true" /&gt;
  
  &lt;asp:Panel ID="pnlpopup" runat="server" Width="400px"&gt;
      test
      &lt;asp:Button ID="btnCancelpopup" runat="server" Text="Button" /&gt;
  &lt;/asp:Panel&gt;
  
  &lt;/form&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>