62,046
社区成员
发帖
与我相关
我的任务
分享
<contenttemplate>
<%if (Request.Cookies["urlSound"] != null)
{%>
<embed src='<%=Request.Cookies["urlSound"].Value %>' autostart="true" loop="false" width="0" height="0" ></embed> <%} %>
<asp:Button ID="Button1" runat="server" Text="提 交" OnClick="Button1_Click" /> </contenttemplate>
//----------------若存在 同名、同身份证、同关键词的 判断是否提交,1、“确定”执行insert语句 2、“取消”则不执行插入语句
if (panchong(TextBox3.Text.Trim().ToString(), TextBox4.Text.Trim().ToString(), ddlworkkey.SelectedItem.Text.ToString()) > 0)
{
/*此处则是调用视频*/
Response.Cookies["urlSound"].Value = "vidio/Tradition.mp3";
//弹出对话框
Page ParameterPage = (Page)System.Web.HttpContext.Current.Handler;
ParameterPage.RegisterStartupScript("confirm", "<script> if(confirm('您好,您前期给我们的来信已经收到,正在办理中,请不必再重复来信,如果您再有不同事项需要来信,请点击“确认”提交,谢谢!')==true){LinkButton1.click();}</script>");
}
else
{
//此段则是执行insert语句
LinkButton1_Click(sender, e);
}
var node=document.getElementById("embed的ID");
if(node!=null)
{
node.Play();
}
给embed标签一个ID值,把上面这个JS放到执行试试
ParameterPage.RegisterStartupScript("confirm", "<script> if(confirm('您好,您前期给我们的来信已经收到,正在办理中,请不必再重复来信,如果您再有不同事项需要来信,请点击“确认”提交,谢谢!')==true){LinkButton1.click();}</script>");