自动弹出提示框
来源:互联网 发布:淘宝店铺联盟好吗 编辑:程序博客网 时间:2024/05/01 10:33
在需要弹出提示框的页面中的<head> </head>间加入:
和一段JavaScript代码:
function FlowAlert()
{
<%=str_Script%>
}
FlowAlert();
</script>
在cs程序文件中输出JavaScript:
str_Script = oPF.FlowAlert(EmployeeID);
调用的公用方法:
protected string strPop = "/r/n var PopForm{0} = window.open('PublicPage/FlowAlert.Aspx?AlertType={1}&AlertID={2}','','status=no,menubar=no,scrollbars=no,width=417,height=245,left=160,top=50') ;";
//待办提醒列表
public string FlowAlert(int EmployeeID)
{
string str_Script = "";
FlowFunction oFF = new FlowFunction();
ArrayList AlertList = oFF.GetFlowAlertList(EmployeeID);
for (int i=0 ;i<AlertList.Count ;i++)
{
CPath_FlowAlertInfo oFlowAlertInfo = new CPath_FlowAlertInfo();
oFlowAlertInfo = (CPath_FlowAlertInfo)AlertList[i];
str_Script = str_Script + string.Format(strPop,"1"+i.ToString(),"1",oFlowAlertInfo.FlowAlertID.ToString());
}
//str_Script = "<script> /r/n " + str_Script +"</script>/r/n";
return str_Script;
}
- 自动弹出提示框
- winform 自动弹出提示框
- 自动弹出下载提示框
- 可以自动消失的弹出提示框
- C# WebBrowser自动点击弹出提示框
- 鼠标经过自动弹出提示框
- 自动弹出一个消息提示
- Eclipse无法自动弹出提示
- eclipse不自动弹出提示
- eclipse不自动弹出提示
- eclipse不自动弹出提示
- Eclipese无法自动弹出提示
- MyEclipse .java .jsp .js页面 自动弹出信息提示框
- IE 7 不弹出提示框,自动关闭窗体
- 自动弹出网页右下角消息提示框特效
- 弹出一个淡入淡出的提示框,且自动消失
- HTML------简单的搜索框自动弹出内容提示
- WebBrowser自动点击弹出提示框alert、弹出对话框confirm、屏蔽弹出框、屏蔽弹出脚本错误的解决办法
- 如何生成war包
- 实战手记之Native Vlan与IVR
- 一年过的好快
- 硬件常识
- 清除Trojan.PSW.WoWar.qq等木马
- 自动弹出提示框
- System::String向CString转换效率最高的方法
- 动态生成图片问题
- JSP/Servlet的重定向技术综述
- Ajax输出的三种形式
- weblogic的安装与配置(一)
- 第四周--星期一
- 数组,函数与指针
- 发下牢骚 有关在云南招聘程序员的困惑