晕啊,刚入门就碰针了..帮帮
<%@ language="vb" runat="server" debug="true" %><script runat="server">
sub linkbutton_click(sender as object,e as eventargs)
select case linkb.forecolor.name
case "red"
linkb.forecolor=system.drawing.color.blue
case "blue"
linkb.forecolor=system.drawing.color.yellow
case "yellow"
linkb.forecolor=system.drawing.color.green
case "green"
linkb.forecolor=system.drawing.color.black
case "black"
linkb.forecolor=system.drawing.color.red
end select
end sub
</script>
<html>
<head>
<meta http-equiv="content-language" content="zh-cn">
<neta http-equiv="content-type" content="text/html;charset=gb2312">
<title>一个简单的ASP.NET程序!"</title>
</head>
<body>
<form runat="server">
<center><br>
<asp:linkbutton id="linkb"
text="这是一个简单的ASP.NET程序!单击试试!"
font-size="14pt"
forecolor="green"
onclick="linkbutton_click"
runat="server" />
</center>
</form>
</body>
</html>
能浏览,但不像书中所讲的能变色..