主题:我是新手 想提问
请问以下的内容有没有语法上的错误?
<%@ page Language="VB"%>
<script runat="server">
Sub Enter_Click(Sender As Object,E As Eventargs)
message.Text=username.Text&"你好,欢迎光临我的主页"
End Sub
</script>
<html>
<head>
<tile>一个简单示例</tile>
</head>
<body>
<form runat="server">
请输入你的姓名:
<asp:textbox id="username" runat="server"/>
<asp:button id="enter" text="确定" onclick="Enter_Click" runat="server"/>
<p>
<asp:label id="message" runat="server"/>
</form>
</body>
</html>
为什么我用EDITPLUS编完后预览后他出现脚本错误?说在:“Sub Enter_Click(Sender As Object,E As Eventargs)”这行缺少“:”请高手帮我解答,谢谢
<%@ page Language="VB"%>
<script runat="server">
Sub Enter_Click(Sender As Object,E As Eventargs)
message.Text=username.Text&"你好,欢迎光临我的主页"
End Sub
</script>
<html>
<head>
<tile>一个简单示例</tile>
</head>
<body>
<form runat="server">
请输入你的姓名:
<asp:textbox id="username" runat="server"/>
<asp:button id="enter" text="确定" onclick="Enter_Click" runat="server"/>
<p>
<asp:label id="message" runat="server"/>
</form>
</body>
</html>
为什么我用EDITPLUS编完后预览后他出现脚本错误?说在:“Sub Enter_Click(Sender As Object,E As Eventargs)”这行缺少“:”请高手帮我解答,谢谢