ASP Net Controls ASP.Net Tutorial

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"  Inherits="_Default" %>



    Untitled Page


    
    

        

            
            
                A
                B
            
            

                

        

        

                                   runat="server" 
                       AlternateText="Image" 
                       Height="128px" 
                       ToolTip="Image"
                       Width="208px" />

    
    

    


File: Default.aspx.vb
Partial Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Select Case DropDownList1.SelectedIndex
            Case 0
                Image1.ImageUrl = "http://www.rntsoft.com/style/logo.png"
            Case 1
                Image1.ImageUrl = "http://www.rntsoft.com/style/logo.png"
        End Select
    End Sub
End Class