M
mike
I'm new to asp.net and just starting building a page with
a label and a button. The label shows up but the button
did not.
Here's the source:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="Chapter2.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft
Visual Studio 7.0">
<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 MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
<asp:Label id="lblHelloWorld"
style="Z-INDEX: 101; LEFT: 21px; POSITION: absolute; TOP:
17px" runat="server">Hello World</asp:Label>
<asp:Button id="btnSubmit"
style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute;
TOP: 12px" runat="server" Text="Submit"></asp:Button>
</form>
</body>
</HTML>
a label and a button. The label shows up but the button
did not.
Here's the source:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="Chapter2.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft
Visual Studio 7.0">
<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 MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
<asp:Label id="lblHelloWorld"
style="Z-INDEX: 101; LEFT: 21px; POSITION: absolute; TOP:
17px" runat="server">Hello World</asp:Label>
<asp:Button id="btnSubmit"
style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute;
TOP: 12px" runat="server" Text="Submit"></asp:Button>
</form>
</body>
</HTML>