Hi All,
I juz started on ASP.net today ... i am trying out a HelloWorld Program and I am having some problem with it ...
Below is my code:
WebForm.2apsx
<%@ Page Language="
vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.
vb" Inherits="HelloWorld.WebForm2"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<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="lblText" style="Z-INDEX: 101; LEFT: 20px; POSITION: absolute; TOP: 21px" runat="server" Width="98px"></asp:Label>
<asp:Button id="btnSubmit" style="Z-INDEX: 102; LEFT: 21px; POSITION: absolute; TOP: 61px" runat="server" Width="77px" Text="Submit"></asp:Button>
</form>
</body>
</HTML>
WebForm.2apsx.
vb
Public Class WebForm2
Inherits System.Web.UI.Page
Protected WithEvents lblText As System.Web.UI.WebControls.Label
Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
lblText.Text = "Hello World"
End Sub
End Class
The program is when i deploy my asp page ... the button does not display at all ... can someone please help me? :(
Thanks.