首先建立一个空网站,之后选择添加新项,添加一个Web窗体。
进入.aspx文件之后,在设计界面中添加9个Lable控件。Lable控件在标准组中。得到的源代码是这样的。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebForm4.aspx.cs" Inherits="WebForm4" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>九九乘法表</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Table ID="Table1" runat="server">
</asp:Table>
<asp:Table ID="Table2" runat="server">
</asp:Table>
<asp:Table ID="Tabl