如何修复0x800a138f - Microsoft JScrip运行时错误:`Sys.Extended.UI`为null或不是对象 [英] How to fix 0x800a138f - Microsoft JScrip runtime error: `Sys.Extended.UI` is null or not an object
本文介绍了如何修复0x800a138f - Microsoft JScrip运行时错误:`Sys.Extended.UI`为null或不是对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有一个我无法弄清楚的错误。
0x800a138f - Microsoft JScrip运行时错误:`Sys.Extended.UI`是null还是不是对象
无法运行的文件:Upload.aspx
Hi
I have an error I can`t figure out of.
0x800a138f - Microsoft JScrip runtime error: `Sys.Extended.UI` is null or not an object
the file that cant run: Upload.aspx
<%@ Page Title="UplaodFile" Language="VB" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" codefile="Upload.aspx.vb" Inherits="Project_Slan.AjaxFileUpload"%>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
</hgroup>
</div>
</section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<h3>Ajax FileUpload</h3>
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server"
OnUploadComplete="AjaxFileUploadEvent" Width="500px" />
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
</asp:Content>
VB代码文件:Upload.aspx.vb
The VB codefile: Upload.aspx.vb
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports AjaxControlToolkit
Namespace Project_Slan
Partial Public Class AjaxFileUpload
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Protected Sub AjaxFileUploadEvent(ByVal sender As Object, ByVal e As AjaxFileUploadEventArgs)
Dim filename As String = System.IO.Path.GetFileName(e.FileName)
Dim strUploadPath As String = "~/uploads/"
AjaxFileUpload1.SaveAs(Server.MapPath(strUploadPath) + filename)
End Sub
End Class
End Namespace
主页中的潦草:
And the scrips in the masterpage:
<form id="masterform1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
</scripts>
</asp:scriptManager>
任何有关错误的想法?
提前致谢!
any ideas on what is wrong?
Thanks in advance!
推荐答案
我在那里看不到任何ToolkitScriptManager
标签
I don't see anyToolkitScriptManager
tag in there
<asp:ToolkitScriptManager ID="ToolkitScriptManager1″ runat="server" CombineScripts="false" ></asp:ToolkitScriptManager>
应该对其进行排序
这篇关于如何修复0x800a138f - Microsoft JScrip运行时错误:`Sys.Extended.UI`为null或不是对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文