相关代码 |
|
Ch08-02-01.aspx Web控件的Label控件 Sub Page_Load(obj As Object, e As EventArgs) ' 设置标记控件的文字内容 Label1.Text = "标记控件" End Sub ' 用户单击“输入”按钮的事件处理程序 Sub Button_Click(obj As Object, e As EventArgs) Label1.Text = TextInput.Value End Sub OnServerClick="Button_Click" /> BorderColor="#FF0000" BorderWidth = "3" Runat="Server" />