<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="WebApplication4.WebForm3" %>
Sub submit( sender as Object ,e as EventArgs ) lbl1.Text="Your name is " & txt1.Text End Sub<!DOCTYPE html>
输出了错误
源错误:
行 2:
行 3: <br> 行 4: Sub submit( sender as Object ,e as EventArgs )<br> 行 5: lbl1.Text="Your name is " & txt1.Text<br> 行 6: End Sub<br> 。。。</p>
1)代码要放到WebForm3.aspx.cs
中,WebForm3.aspx
是页面设计。
2)既然是C#
,你放一段VB.Net
代码算什么意思?