📄 defaultvb.aspx.vb
字号:
Imports System
Imports System.Web.UI.WebControls
Imports Telerik.QuickStart
Imports Telerik.WebControls
Imports System.Web.UI.HtmlControls
Imports System.Data
Imports System.Data.OleDb
Namespace Telerik.ComboboxExamplesVB.CustomAttributes
'/ <summary>
'/ Summary description for _Default.
'/ </summary>
Public Class DefaultVB
Inherits XhtmlPage
Protected RadComboBox1 As Telerik.WebControls.RadComboBox
Protected Image1 As HtmlImage
Protected WithEvents Button1 As Button
Protected Label1 As Label
Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles MyBase.Load
End Sub 'Page_Load
Protected Overrides Sub OnInit(e As EventArgs)
'
' CODEGEN: This call is required by the ASP.NET Web Form Designer.
'
InitializeComponent()
MyBase.OnInit(e)
End Sub 'OnInit
'/ Required method for Designer support - do not modify
'/ the contents of this method with the code editor.
'/ </summary>
Private Sub InitializeComponent()
End Sub 'InitializeComponent
Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
If RadComboBox1.SelectedIndex <> - 1 Then
Label1.Text = "You selected picture: " + RadComboBox1.SelectedItem.Text
Image1.Src = "Img/" + RadComboBox1.SelectedItem.Attributes("ImagePath")
End If
End Sub 'Button1_Click
End Class 'DefaultVB
End Namespace 'Telerik.ComboboxExamplesVB.CustomAttributes
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -