microsoft jscript runtime error:test is undefined
<p>I have 2 master pages 1 inside admin adn 1 outside admin</p>

<p>jquery function outside admin master page is firing on specific event and same funtions when I copied from that file to adminmaster , i m getting eror</p>

<p>microsoft jscript runtime error:'functionname'is undefined</p>

<p>The difference here is content page of admin master having jquery function as well , and only those functions are available in viewsource page or firefox->firebug->script</p>

<p>The function which are inside adminmasre are not available at all.</p>

<p>here is my code for admin.master</p>

<pre><code>&lt;asp:ContentPlaceHolder ID="scriptadmin" runat="server"&gt; 
    &lt;script type="text/javascript"&gt;
        $(document).bind("mobileinit", function () {
            $.mobile.ajaxEnabled = false;
        });

        $("#Logout").click(function (e) {
            e.stopImmediatePropagation();
            e.preventDefault();
        });

        function test() {
            alert("Test");
        }

        function Dologout() {
            //     Sys.Services.AuthenticationService.logout(null, OnLogoutSuceeded, OnLoginFailed, null);
            // return false;
        }

        //         function OnLogoutSuceeded(result, userContext, methodName) {
        //             alert('You have been successfully logged out of the application...');
        //          //   window.location.href("Login.aspx");
        //         } 

&lt;/script&gt;

&lt;/asp:ContentPlaceHolder&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and here is div where I called this function
    
      Back 
              Logout
    </p>

<p>Content page is :</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"      Inherits="XYZ.Admin.Default" MasterPageFile="~/Admin/admin.Master"  %&gt;
    &lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"&gt;
        &lt;h3 class="MainHeader"&gt;Upload Excel file to convert into database &lt;/h3&gt;
        &lt;asp:Label ID="lblmsg" runat="server" Text="" CssClass="message" &gt;&lt;/asp:Label&gt;
        &lt;div class="file-upload-btn"&gt;
            &lt;asp:FileUpload ID="FileUpload1" runat="server"  /&gt;
        &lt;/div&gt;
        &lt;div id ="ButtonWrapper" &gt; 
            &lt;asp:Button ID="btnUpload" runat="server" Text="Upload" data-role="none" onclick="btnUpload_Click"    /&gt;
        &lt;/div&gt;
&lt;/asp:Content&gt;

&lt;asp:Content ID="script1" ContentPlaceHolderID="scriptadmin" runat="server"&gt;
    &lt;script type="text/javascript"&gt;
         $(function () {
             $("#btnUpload").removeClass('ui-btn-hidden ui-btn-inner ui-submit ui-btn ui-shadow ui-btn-corner-all ui-btn-up-b');
             $("#FileUpload1").removeClass('ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c file-upload-btn');
         });
    &lt;/script&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>Any help would be appreciated!!</p>
