今天在看《asp.net程序设计基础篇》,发现可以不借助IDE来写aspx文件,并可以执行之。所以,将就的在DW中写了一个aspx文件。程序如下:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<p><a id="Anchor1" RunAt="Server">请按这里</a> </p>
<form RunAt="Server">
<p>
<button id="Button1" RunAt="Server" OnServerClick="Button1_Click">改变字体</button>
</p>
</form>
<p>
<span id="Sp1" RunAt="server">原来的字体</span>
</p>
</body>
</html>
<script language="VB" runat="server">
sub Page_load()
Anchor1.href="http://www.163.com"
end sub
sub Button1_Click(Sender as Object,e as Eventargs)
Sp1.innerHtml="这是点击后的字符"
end sub
</script>