How get namespace on javascript in asp.net web?
<pre><code>%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._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;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        $(document).ready(function () {
            debugger;
            var counter = "test";
            WebApplication1.Service1.DoWork(counter, ResultLoadMainGridProductType, ErrorLoadMainGridProductType);
        });
        function ResultLoadMainGridProductType() {


        }
        function ErrorLoadMainGridProductType() { 


        }
    &lt;/script&gt;
    &lt;form id="form1" runat="server"&gt;    
    &lt;div&gt;
    &lt;asp:ScriptManager ID="ScriptManager" runat="server"&gt;            
            &lt;Services&gt;
                &lt;asp:ServiceReference Path="~/Service1.svc" /&gt;
            &lt;/Services&gt;
        &lt;/asp:ScriptManager&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Code fails on <code>WebApplication1.Service1.DoWork(counter, ResultLoadMainGridProductType, ErrorLoadMainGridProductType);</code>
Error: Error of implementation of Microsoft Jscript: "WebApplication1" is not certain.
WebApplication1 - the namespace... then I watch it it undefined on javascript code working.
How make it be there??</p>
