
Untitled
By: a guest on
May 1st, 2010 | syntax:
VB.NET | size: 0.62 KB | hits: 121 | expires: Never
Imports System.IO
Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim test As String = String.Empty
If IsPostBack Then
test = "PostBack"
Else
test = "not a post back event"
End If
End Sub
Protected Sub btnDoSomething_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnDoSomething.Click
Dim output As String = String.Empty
Dim li As ListItem = DropDownList1.SelectedItem
lblInfo.Text = li.Text
End Sub
End Class