我收到的時候下面的條件匹配,我使用下面的代碼在內容頁面,並在我的母版頁這樣的錯誤,我有這個微軟JScript運行時錯誤:預期的對象
<asp:ScriptManager EnablePartialRendering="true" EnablePageMethods="true" ID="smgr" runat="server" />
錯誤: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);
}
如果您的頁面上有JavaScript功能,請將Return False,http://stackoverflow.com/questions/855360/when-and-why-to-return-false-in-javascript – Safi 2011-06-27 12:35:05