[英]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.