JavaScript into Asp Page
<p>i am learning javascript client side scripting language and i am using js in ASP.. i dont know when i compile the code, it shows </p>

<blockquote>
  <p>COMPILATION ERROR:Compiler Error
  Message: CS1061: 'ASP.default_aspx'
  does not contain a definition for
  'popup' and no extension method
  'popup' accepting a first argument of
  type 'ASP.default_aspx' could be found
  (are you missing a using directive or
  an assembly reference?)</p>
</blockquote>

<p>here is my code : </p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WEB_test_app._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;Shuraat Web ki&lt;/title&gt;
    &lt;script type ="text/javascript"&gt;
    function popup()
    {
    alert("popup!!");
    }    
    &lt;/script&gt; 
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick ="popup()"/&gt;

      &lt;script type ="text/javascript"&gt;
      document.write("Abid");
      &lt;/script&gt;   
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
