0

asp.net に少し問題があります。関数を ASP ページに直接プログラムしようとしていますが、失敗します。

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication2.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
    // My function 
    Sub print()
        Response.Write("example")
    End Sub%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
</body>
</html>

そして、これはエラーです:

Línea 242:            
Línea 243:            #End ExternalSource
Línea 244:            Me.__PageInspector_EndRenderTracing(New Object() {__w})
Línea 245:        End Sub
Línea 246:        

誰でも私を助けてくれますか?前もって感謝します!

4

1 に答える 1