Hi,
i'm new to ASP and related, and i've a simple (i hope) question:
I have a form with one text box and a button.
The text box is an object from the 'HTML' tag in the toolbox, and the button from the 'Web forms' tag, the problem is that when i 'build and browse' the project, the button (or any other 'Web forms' control) doens't appear neither in the 'attached' Visual Studio browser nor in the Internet Explorer.
Here's the HTML code generated by the form:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="exp.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</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=" </HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT id="Text1" style="Z-INDEX: 101; LEFT: 137px; WIDTH: 198px; POSITION: absolute; TOP: 72px; HEIGHT: 24px" type="text" size="27" name="Text1" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 137px; POSITION: absolute; TOP: 31px" runat="server" Width="99px" Height="26px" Text="Button" ForeColor="#FF8000" BackColor="#FFC0C0"></asp:Button>
</form>
</body>
</HTML>
I simply followed the walkthrough on how to create a Web Form, and i can't see what's going wrong...
This is a quotation from the walkthrough:
'<asp:Button id="Button1" runat="server"></asp:Button>
This element does not correspond directly to an HTML element. Instead, when the page runs, an instance of the Button Web server control is created and processed. During page processing, the control outputs some HTML elements into the page (in this case, an HTML <input type=submit> element).'
Can anyone enlight me on this?
by the way, i'm running MIIS 5.0 on a Win XP Pro with Visual Studio 2003
Thanks..
i'm new to ASP and related, and i've a simple (i hope) question:
I have a form with one text box and a button.
The text box is an object from the 'HTML' tag in the toolbox, and the button from the 'Web forms' tag, the problem is that when i 'build and browse' the project, the button (or any other 'Web forms' control) doens't appear neither in the 'attached' Visual Studio browser nor in the Internet Explorer.
Here's the HTML code generated by the form:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="exp.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</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=" </HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT id="Text1" style="Z-INDEX: 101; LEFT: 137px; WIDTH: 198px; POSITION: absolute; TOP: 72px; HEIGHT: 24px" type="text" size="27" name="Text1" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 137px; POSITION: absolute; TOP: 31px" runat="server" Width="99px" Height="26px" Text="Button" ForeColor="#FF8000" BackColor="#FFC0C0"></asp:Button>
</form>
</body>
</HTML>
I simply followed the walkthrough on how to create a Web Form, and i can't see what's going wrong...
This is a quotation from the walkthrough:
'<asp:Button id="Button1" runat="server"></asp:Button>
This element does not correspond directly to an HTML element. Instead, when the page runs, an instance of the Button Web server control is created and processed. During page processing, the control outputs some HTML elements into the page (in this case, an HTML <input type=submit> element).'
Can anyone enlight me on this?
by the way, i'm running MIIS 5.0 on a Win XP Pro with Visual Studio 2003
Thanks..