简体   繁体   English

Microsoft JScript运行时错误:预期对象

[英]Microsoft JScript runtime error: Object expected

i am getting this error when the below condition match, i am using the below code in Content page and in my master page i have this 当以下条件匹配时出现此错误,我在内容页面和主页面中使用以下代码,

<asp:ScriptManager EnablePartialRendering="true" EnablePageMethods="true" ID="smgr" runat="server" />

Error: Microsoft JScript runtime error: Object expected 错误:Microsoft JScript运行时错误:预期对象

 if (lstRecipient.Items[i].Text == ddlRecipient.SelectedItem.Text)
 {
   lstRecipient.Items.RemoveAt(i);
   isDuplicate = true;
   ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "AlertAdd", "jAlert('Recipient name is already in the list.', 'Duplicate Entry!');", true);
 }

This is typically caused when a jscript function cannot be resolved. 这通常是由于无法解析jscript函数引起的。 Do you have a reference to the JQuery library containing the jAlert function? 您是否对包含jAlert函数的JQuery库有引用?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jQuery“Microsoft JScript运行时错误:对象预期” - jQuery “Microsoft JScript runtime error: Object expected” Microsoft JScript运行时错误:“null”为null或不是对象 - Microsoft JScript runtime error: 'null' is null or not an object Microsoft JScript运行时错误:从代码隐藏调用时,将引发对象 - Microsoft JScript runtime error: Object expected thrown when called from codebehind Microsoft JScript运行时错误:对象不支持此属性或方法 - Microsoft JScript runtime error: Object doesn't support this property or method Microsoft JScript运行时错误:“ data.EmployeeDetails.EmployeeId”为null或不是对象` - Microsoft JScript runtime error: 'data.EmployeeDetails.EmployeeId' is null or not an object` Microsoft JScript运行时错误:对象不支持此属性或方法 - Microsoft JScript runtime error: Object doesn't support this property or method Microsoft JScript 运行时错误:'Sys.Extended.UI' 是 null 或者不是 object - Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object BHO插件(Microsoft JScript运行时错误) - BHO Plugin (Microsoft JScript runtime error) Microsoft JScript运行时错误:“ clientUploadComplete”未定义 - Microsoft JScript runtime error: 'clientUploadComplete' is undefined Fancybox Microsoft JScript 运行时错误:权限被拒绝 - Fancybox Microsoft JScript runtime error: Permission denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM