July 18, 2002 - ASP.NET's Syntax
July 18, 2002 ASP.NET's Syntax Tips: July 2002
Yehuda Shiran, Ph.D.
|
RUNAT="server"
and ID
. The ID
parameter is used for event handlers and other references. Here is an example BODY
for an ASP.NET page:
<BODY STYLE="font-size:12; font-family:arial,verdana,sans-serif;">
<FORM RUNAT="server">
<TABLE BORDER="0">
<TR><TD>Enter First Number:</TD><TD><ASP:TEXTBOX
RUNAT="server" SIZE="4" ID="first" STYLE="text-align:'right'"/></TD></TR>
<TR><TD>Enter Second Number:</TD><TD><ASP:TEXTBOX
RUNAT="server" SIZE="4" ID="second" STYLE="text-align:'right'"/></TD></TR>
<TR><TD align="right"><ASP:BUTTON TEXT="Add" ID="doAdd"
OnClick="Submit_Click" RUNAT="server"/></TD><TD><HR></TD></TR>
<TR><TD></TD><TD><ASP:TEXTBOX ID="resultControl"
RUNAT="server" STYLE="text-align:'right'" SIZE="4"/></TD></TR>
</TABLE>
</FORM>
</BODY>
To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.