📄 addresshashtable.ascx
字号:
<Script Runat="Server">
Public ReadOnly Property Values As HashTable
Get
Dim colHashTable As New HashTable
Dim ctlControl As Control
Dim txtTextBox As TextBox
For each ctlControl in Controls
If TypeOf ctlControl Is TextBox Then
txtTextBox = ctlControl
colHashTable.Add( txtTextBox.ID, txtTextBox.Text )
End If
Next
Return colHashTable
End Get
End Property
</Script>
<p>Street Address:
<br>
<asp:TextBox
ID="Street"
Runat="Server" />
<p>City:
<br>
<asp:TextBox
ID="City"
Runat="Server" />
<p>State:
<br>
<asp:TextBox
ID="State"
Runat="Server" />
<p>ZIP:
<br>
<asp:TextBox
ID="ZIP"
Runat="Server" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -