webform1.aspx
来自「C#2005 实例源代码」· ASPX 代码 · 共 43 行
ASPX
43 行
<%@ Page language="c#" Inherits="CallWebServiceTest.WebForm1" CodeFile="WebForm1.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 111; LEFT: 16px; WIDTH: 383px; POSITION: absolute; TOP: 16px; HEIGHT: 288px"
cellSpacing="1" cellPadding="1" width="383" align="center" border="1">
<TR>
<TD colSpan="1" rowSpan="1">
<P>
<asp:Button id="ButtonCallSayHello" runat="server" Text="调用SayHello方法" Width="176px" onclick="ButtonCallSayHello_Click"></asp:Button></P>
<P>
<asp:Label id="Label1" runat="server">SayHello方法的结果为:</asp:Label>
<asp:Label id="LabelSayHelloResult" runat="server" Width="176px" Font-Bold="True"></asp:Label></P>
</TD>
</TR>
<TR>
<TD>
<P>
<asp:Label id="Label3" runat="server">x=</asp:Label>
<asp:TextBox id="TextBoxX" runat="server"></asp:TextBox></P>
<P>
<asp:Label id="Label4" runat="server">y=</asp:Label>
<asp:TextBox id="TextBoxY" runat="server"></asp:TextBox></P>
<P>
<asp:Button id="ButtonCallAdd" runat="server" Text="调用Add方法" onclick="ButtonCallAdd_Click"></asp:Button></P>
<P>
<asp:Label id="Label2" runat="server">Add方法的结果为:</asp:Label>
<asp:Label id="LabelAddResult" runat="server" Width="160px" Font-Bold="True"></asp:Label></P>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?