close

VB

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim myScript As String = "alert(document.forms[0]['TextBox1'].value);" Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myKey", myScript, _ True) End Sub

C#

protected void Page_Load(object sender, EventArgs e) { string myScript = @"alert(document.forms[0]['TextBox1'].value);"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", myScript, true); }
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 hsiung03 的頭像
    hsiung03

    hsiung.博格 ERP軟體

    hsiung03 發表在 痞客邦 留言(0) 人氣()