[求助]这段代码为什么错了?
错误行如下:
label1.text="<font color="red">" & biaoti.text &"</font><br>"& replace(neirong.text,chr(13),"<br>")
整个页面代码如下:
<%@page language="vb"%>
<script language="vb" runat="server">
sub butclick(sender as object,event1 as eventargs)
label1.text="<font color="red">" & biaoti.text &"</font><br>"& replace(neirong.text,chr(13),"<br>")
end sub
</script>
<html>
<head>
<title>about_textbox</title>
</head>
<body>
<div align="center">
<asp:label id="label1" runat="server"/>
<form runat="server">
<font color="red">标题</font>
<asp:textbox id="biaoti" runat="server" columns="20" maxlength="20"/>
<br>
<font color="red">内容</font>
<asp:textbox id="neirong" runat="server" textmode="multiline" columns="30" rows="5" wrap="true"/>
<br>
<asp:button id="submit" runat="server" text="提交" onclick="butclick"/>
</form>
</div>
</body>
</html>
[此贴子已经被作者于2005-3-4 21:19:25编辑过]