mylabel2.aspx

来自「This is a book about vb.you could learn 」· ASPX 代码 · 共 25 行

ASPX
25
字号
<%@ Register TagPrefix="Wrox" Namespace="WroxControls" 
			  Assembly="MyLabel2" %>
<%@ Import Namespace="System.Drawing" %>

<script runat="server" language="VB">

	Sub Page_Init( sender As object, e As EventArgs )
	
		ourLabel.Text = "Label Created via Code"
		ourLabel.ForeColor = Color.Yellow
		ourLabel.BackColor = Color.Black
		ourLabel.Font.Size = New FontUnit(36)

	End Sub
	
</script>

<html>
<body>

<Wrox:MyLabel2 runat="server" id="ourLabel" />

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?