相关代码 |
|
Ch08-04-02.aspx Web控件的Image控件 ' 用户单击“确定”按钮的事件处理程序 Sub Button_Click(obj As Object, e As EventArgs) Image1.ImageURL = DropDown1.SelectedItem.Value Image1.AlternateText = DropDown1.SelectedItem.Text End Sub 请选择希望观赏的旅游景点图片: ToolTip="景点图片预览" Width="30%" Hight="30%" AlternateText="旅游景点图片1" Runat="Server" /> Runat="Server" />