管延文

管延文程序空间 QQ:27651302

导航

在后台 .cs 中执行前台的js 函数

        <script type="text/javascript" language="javascript"> 
<!--
    function openChild(num, num2) {

        var k = window.showModalDialog("pop.aspx?userid=" + num + "&usertel=" + num2, window, "dialogWidth:808px;status:no;dialogHeight:540px");
        if (k == 1)//判断是否刷新 
        {
            alert('刷新');
            window.location.reload();
        }
    }
  
    //--> 
</script> 

 

.cs

 protected void Button1_Click(object sender, EventArgs e)
        {
            string isFresh = "1";
            string script = string.Format("openChild('{0}', '{1}');", isFresh, "13943288280");
            ScriptManager.RegisterStartupScript(this, this.GetType(), "Message", script, true);
        }

 

posted on 2013-10-27 19:41  tiger8000  阅读(869)  评论(0编辑  收藏  举报