vb .net (asp .net) app... response.write
I feel this falls into the 'stupid question' category, but the time has come that I must ask it.
I have this code from my vb .net (asp .net) application (created in visual studio .net)
VB Code:
Public Class WebForm1
Inherits System.Web.UI.Page
#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
Response.Write("<table><tr><td>Why does this show up above the html tags</td></tr></table>")
End Sub
End Class
Why does my response.write show get written above every other tag on the page... like this:
[Results]
Code:
<table><tr><td>Why does this show up above the other tags?</td></tr></table>
<!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="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WebForm1.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTI3OTMzNDM4NDs7PuIeAj03w2/SZE+efTMFhqIXJ3Ap" />
</form>
</body>
</HTML>
How do I make the stuff from my response.write get written inside of the <body> tags on the resulting page????
My guess is that I need to stick some 'runat=server' stuff somewhere, but I don't know where.
thanks!
:p
*resolved* :) vb .net (asp .net) app...