做项目这里卡主。。请教高手!。。。UpdatePanel 关于无刷新和脚步的问题!。。
//时间事件
protected void TIS_Tick(object sender, EventArgs e)
{
if (timNum == 0)
{
//是否有新邮件
if (InsideEmailManager.GetCounteamilByTypeIsId(user.Id))
{
//提示声音
// ScriptManager.RegisterStartupScript(this.Page, GetType(), "", "<bgsound src='sound/1.wav' id='bgsTest' loop='1'>", false);
Response.Write("<bgsound src='sound/1.wav' id='bgsTest' loop='1'>");
//提示脚本
Page.ClientScript.RegisterStartupScript(GetType(), "show", "TianShi()", true);
//关闭时间器
// TIS.
}
}
timNum++;
//if (timNum == 5) TIS.Enabled = false;
}
前台无刷新。。绑定时间事件。。用了无刷新就报错!。。("<bgsound src='sound/1.wav' id='bgsTest' loop='1'>");声音提示报错!。。 去掉不用的话。。提示脚本也无法提示!。。但没报错!。。。。请大家给个主意啊!!!!!!!!!!!!!!!!!!!!!!!
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="div1" style="float:left;width:200px;height:98%; background-color:#C9E7F5">
<cc1:Accordion ID="Accordion2" runat="server" HeaderCssClass="headerBg" ContentCssClass="contentBg">
</cc1:Accordion>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TIS" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
protected void TIS_Tick(object sender, EventArgs e)
{
if (timNum == 0)
{
//是否有新邮件
if (InsideEmailManager.GetCounteamilByTypeIsId(user.Id))
{
//提示声音
// ScriptManager.RegisterStartupScript(this.Page, GetType(), "", "<bgsound src='sound/1.wav' id='bgsTest' loop='1'>", false);
Response.Write("<bgsound src='sound/1.wav' id='bgsTest' loop='1'>");
//提示脚本
Page.ClientScript.RegisterStartupScript(GetType(), "show", "TianShi()", true);
//关闭时间器
// TIS.
}
}
timNum++;
//if (timNum == 5) TIS.Enabled = false;
}
前台无刷新。。绑定时间事件。。用了无刷新就报错!。。("<bgsound src='sound/1.wav' id='bgsTest' loop='1'>");声音提示报错!。。 去掉不用的话。。提示脚本也无法提示!。。但没报错!。。。。请大家给个主意啊!!!!!!!!!!!!!!!!!!!!!!!
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="div1" style="float:left;width:200px;height:98%; background-color:#C9E7F5">
<cc1:Accordion ID="Accordion2" runat="server" HeaderCssClass="headerBg" ContentCssClass="contentBg">
</cc1:Accordion>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TIS" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
...全文
相关推荐
UpdatePanel和jQuery不兼容 局部刷新jquery失效
在做项目中发现,在使用了UpdatePanel的地方,局部刷新后,jquery失效了,后来经过搜索找到不错的解决方法,在此与大家分享下,有类似问题的朋友可以参考下
vs.net控件updatePanel实现无刷新的方法
vs.net控件updatePanel实现无刷新的方法,需要的朋友可以参考一下
UpdatePanel刷新后要调用JavaScript函数
在每次响应后调用JavaScript中的函数的方法。
asp.net UpdatePanel实现无刷新上传图片
1)前台 代码如下: <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”_Default” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”server”> <tit
ASP.NET中UpdatePanel与jQuery同时使用所遇问题解决
在.NET中使用了UpdatePanel,里面的输入框使用了jQuery的日历选择器,接下来介绍下两者同时使用的一些细节及问题的解决方法,感兴趣的各位可以参考下哈


