弹出对话框的问题?
752 2004-11-03 02:15:56 下面的代码在链接按钮的单击事件中,当注释掉处理函数时对话框可以正常显示出来,加上去就没有对话框了,谁能说说为什么!怎么解决,谢谢!
if(condition.Trim() == "")
{
Response.Write("<script>alert('请选择至少一张图片!');</script>");
return;
}
else
{
Response.Write("<script language='javascript'>var ans;");
Response.Write("ans=window.confirm('您确认要删除以下图片吗?');");
Response.Write("if (ans==false){window.location.href='ManageImage.aspx'}</script>");
deletePic(condition); //处理函数
}