()在Design View下将一个ImageButton拖放到表单上并将该控件的ImageUrl属性设置为~/images/AddToCartgife
()选中TextBox并将Columns属性从修改为
()切换到Source View并找到ImageButton控件将声明修改为如下代码
<asp:ImageButton ID=ImageButton runat=server
OnClick=
ImageButton_Click
ImageUrl=
~/images/AddToCart
gif
/>
()打开代码文件Defaultaspxvb并添加如下代码就在End Class语句的前面
Protected Sub ImageButton_Click(ByVal sender As Object _
ByVal e As SystemWebUIImageClickEventArgs)
TextBoxText = You clicked the ImageButton at position & _
eXToString() & & eYToString()
()按下F运行页面多次单击ImageButton并同时移动鼠标的位置注意单击鼠标时的座标是怎样在文本框中显示的
[] [] []