页面加载时弹出的小窗口 [英] little pop up window on page load

查看:92
本文介绍了页面加载时弹出的小窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

每隔15分钟,我就会刷新我的网页.
在页面加载中,我将检查条件.如果有条件,则
我想显示一个带有静态内容的弹出窗口.
请提出建议.

问候,
AP

Dear Friends,

For every 15 min I will refresh my web page.
On page load I will be checking a condition. If a condition is statified then
I want to display a little pop up window with a static content.
Kindly suggest.

Regards,
AP

推荐答案

您可以执行以下操作

在Asp.net中,检查条件后,您可以使用alert(''msg'')创建一个小的javascript函数,并使用RegisterClientScript将其放在页面上.在html页面加载事件(html事件)中,调用此javascript您从Asp.net创建的功能.如果该函数存在,它将显示该消息,否则将不做任何事情..

有关如何使用RegisterClientScript的信息,请参考此代码项目url.
使用&调用RegisterStartUpScript,RegisterClientScript和客户端脚本 [
You could do the following

In Asp.net, after checking the condition you could create a small javascript function with alert(''msg'') and using RegisterClientScript you could put it on the page.. In the html page load event (html event) call this javascript function you created from Asp.net. If the function existed it will show the message otherwise it will not do anyting..

Refer this codeproject url for how to use RegisterClientScript

Use & Call RegisterStartUpScript, RegisterClientScript and Client-Side Script[^]


这篇关于页面加载时弹出的小窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆