zoukankan      html  css  js  c++  java
  • 弹出模式窗口的returnValue问题

    window.returnValue问题
    提问时间: 2008-09-18 14:12
    悬赏分:5 浏览:397 次

    sel_date.aspx : 

        <script language="javascript">

            function GetDate()
            {
                var reVal=window.showModalDialog("day.aspx", '',
                    "status:no;center:yes;scroll:no;resizable:no;help:no;dialogWidth:340px;dialogHeight:250px");
                if(reVal!="")
                {
                document.formAct.txt_receive_date.value=reVal;  //返回所选的日期
                };
            };
        </script>

    ------------------------------------------------

    day.aspx

        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            string sel_date = Calendar1.SelectedDate.ToShortDateString();
            Response.Write("<script>window.returnValue=" + sel_date + ";</script>");
            Response.Write("<script>window.close();</script>");
        }

  • 相关阅读:
    window.fonts
    smpt authentification 配置
    如何从思维上应对
    中文字体 英文字体
    Path Breadcrumbs
    drupal commerce app
    做视频或者什么模块开发之类的
    分页符 箭头 难看
    theme wrapper 例子
    background position 稍微深入
  • 原文地址:https://www.cnblogs.com/nianshi/p/1331457.html
Copyright © 2011-2022 走看看