正在加载图片...
212.2 Code behind技术(1) ■aspx例子 %(a Page language="c#"Codebehind="Web Forml. aspxcs Auto Event Wireup="false"Inherits=XXXX. WebForm1"% <HTML> <HEAD> title> Web Form1</title> <meta name=CODE LANGUAGE Content=C# <meta name=vs defaultclientScript"content="JavaScript> <HEAD> <body ms positioning="GridLayout <form id="Forml"method="post"runat="server"><FONT face=4"> <asp: TextBox id=Text Boxl" runat="server"Width=265px Height=48px ></ <asp: Button id="ButtonI"runat="server"Width=120px Height=40px Text="Button"></asp: Button <asp Label id="Label l" runat="server"Width=376px Height=80px">Label</asp: Label></ FONT></form></body </HTML>21.2.2 Code Behind技术(1) ◼ aspx例子 <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="XXXX.WebForm1" %> <HTML> <HEAD> <title>WebForm1</title> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <FONT face="宋体"> <asp:TextBox id="TextBox1" runat="server" Width="265px" Height="48px"></asp:TextBox> <asp:Button id="Button1" runat="server" Width="120px" Height="40px" Text="Button"></asp:Button> <asp:Label id="Label1" runat="server" Width="376px" Height="80px">Label</asp:Label></FONT> </form></body> </HTML>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有