2011年9月18日

asp.net 后台事件掉用前台js

摘要: 在下面的例子中,我们在一个 .aspx 文件中声明了一个 TextBox 控件和一个 Label 控件。当您更改了 TextBox 中的值,并且在 TextBox 外单击时,change 子例程就会被执行。change 子例程会向 Label 控件写一条文本:<script runat="server">Sub change(sender As Object, e As EventArgs)lbl1.Text="You changed text to " & txt1.TextEnd Sub</script><htm 阅读全文

posted @ 2011-09-18 11:24 肖秋峰 阅读(279) 评论(0) 推荐(0) 编辑

导航