後端呼叫javascript

摘要:後端呼叫javascript

A.aspx

<script type="text/javascript">
    
    function Popup(msg)
    {
        alert('訊息視窗 = ' + msg);
    }

</script>

A.aspx.cs

Page.RegisterStartupScript("Show", "<script language=JavaScript>Popup('"+字串+"');</script>");