⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch08-03-03.aspx

📁 这是一个asp.net的全文教程.里面还有数据库的数据.对初学者有很大的帮助
💻 ASPX
字号:
<Html>
<Head>
<Title>Ch08-03-03.aspx Web控件的DropDownList控件</Title>
<Script Language="VB" Runat="Server" >
 	' 用户单击“确定”按钮的事件处理程序
  	Sub Button_Click(obj As Object, e As EventArgs)
 		Dim strA As String
		' 取出选择的寄送方式
 		strA ="选择的寄送方式为:<BR>"
		strA = strA & "Value值:" & _
      			Shipping.SelectedItem.Value & _
      			"<BR>Text值:" & Shipping.SelectedItem.Text
 		Show1.InnerHtml = strA
 	End Sub
</Script>
 </Head>
 <Body>
 <Form Runat="Server">
 请选择货品的寄送方式:<Br>
 <asp:DropDownList ID="Shipping" Width="120px" Runat="Server">
 	<asp:Listitem Text="邮局寄送" Value="Postal" />
 	<asp:Listitem Text="快递" Value="UPS" />
 	<asp:Listitem Text="自取" Value="Self" />
 </asp:DropDownList>
 <Input Type="Button" ID="Button" Value="确定" Runat="Server"
         		OnServerClick="Button_Click" /><P>
 </Form>
 <Span ID="Show1" Runat="Server"></Span>
 </Body>
 </Html>

⌨️ 快捷键说明

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