不使用单击事件的asp.net中的弹出窗口 [英] popup window in asp.net without using click events

查看:71
本文介绍了不使用单击事件的asp.net中的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生

我在项目中实现代码时遇到一些问题.我正在尝试不使用点击事件来弹出窗口.

我喜欢在我的第一页打开(开始页)时实现代码,该时间会弹出窗口显示.

请给我有关如何解决此问题的信息,或尝试实现代码...

感谢高级!!

Dear sir

I have some problem when i am implementing code in my project. I am trying to popup window without using click events.

I like to implements code when my first page is open(starting page) that time popup window display.

please give me information how to solve this problem or try to implements code...

thanks in advanced !!

推荐答案

在客户端


(文档).ready(functoin() { 窗口 .open(" ) ; });
(document).ready(functoin() { window.open("url"); });


如果您需要在页面加载时打开弹出扩展器,只需使用相应语言的代码隐藏即可:

If you need the popup extender to open when the page loads, just do this in the code-behind in your respective language:

protected void Page_Load(object sender, EventArgs e)     
{
    if(!Page.IsPostBack)
    {
       ModalPopupExtender1.Show();
    }
}


这篇关于不使用单击事件的asp.net中的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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