HTML Image 2
asp.net html 控件
html image 2
<script runat="server">
sub choose_image(sender as object, e as eventargs)image1.src = select1.value
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<select id="select1" runat="server">
<option value="smiley.gif">smiley</option>
<option value="angry.gif">angry</option>
<option value="stickman.gif">stickman</option>
</select>
<input type="submit" runat="server" value="display image"
onserverclick="choose_image">
<br><br>
<img id="image1" src="smiley.gif" runat="server" width="32" height="32" />
</form>
</body>
</html>
相关文章
- ASP.NET 教程
- ASP.NET Web Pages 文件夹
- ASP.NET Web Pages 图表
- ASP.NET Web Pages Email
- ASP.NET Web Pages PHP
- ASP.NET Web Pages 类参考手册
- ASP.NET Web Pages Database 参考手册
- ASP.NET Razor 语法
- ASP.NET Razor VB 循环和数组
- ASP.NET MVC HTML 帮助器
- ASP.NET ViewState
- ASP.NET CompareValidator 控件
- ASP.NET DropDownList 控件
- ASP.NET Literal 控件
- ASP.NET RadioButton 控件
- WebSecurity CurrentUserName 属性
- WebSecurity CreateAccount 方法
- WebSecurity GetPasswordChangeDate 方法
- WebSecurity RequireRoles 方法
- WebSecurity RequireUser 方法