有人告诉我,如果我不能在一天结束时解决这个问题,我将在本周末放手。我需要帮助来解决这个问题。我正在尝试为共享点站点创建一个 .aspx 页面。这是我的代码...
<script runat="server">
Sub submit(Source As Object, e As EventArgs)
button1.Text="You clicked me!"
End Sub
</script>
<!DOCTYPE html>
<html>
<body>
<form runat="server">
<asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit" />
</form>
</body>
</html>
每次加载页面时,我都会收到错误消息。我从互联网上撕下了这段代码,当我加载页面时,它说:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Code blocks are not allowed in this file.
Source Error:
Line 3: button1.Text="You clicked me!"
Line 4: End Sub
Line 5: </script>
Line 6:
Line 7: <!DOCTYPE html>
请帮我。为什么我会收到此消息?