M
Martin Eyles
Hi,
I have an asp.net page, which uses the response.write method calls
in the Page_Load method to output dynamically to the page. Unfortunately,
this always inserts text at the beginning of the file, before the
<!DOCTYPE...> definition. I would like to control the position, so that it
always appears in a certain place in my code (within a div or span with a
defined id). I did consider using innerHTML, but this doesn't appear to work
at all, getting compiler errors. Does anyone have any other ideas?
Thanks,
Martin
--
Martin Eyles
(e-mail address removed)
_______CODE BELOW________
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
Response.Write("TEST")
End Sub
_________Gives__________
TEST <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"> <html>
<head>
<title>TEST</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<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="TEST.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtNjU0MzcyMTk1Ozs+iI5lAOcC76OEBXsnSYfQpECsHAI=" />
</form>
</body>
</html>
I have an asp.net page, which uses the response.write method calls
in the Page_Load method to output dynamically to the page. Unfortunately,
this always inserts text at the beginning of the file, before the
<!DOCTYPE...> definition. I would like to control the position, so that it
always appears in a certain place in my code (within a div or span with a
defined id). I did consider using innerHTML, but this doesn't appear to work
at all, getting compiler errors. Does anyone have any other ideas?
Thanks,
Martin
--
Martin Eyles
(e-mail address removed)
_______CODE BELOW________
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
Response.Write("TEST")
End Sub
_________Gives__________
TEST <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"> <html>
<head>
<title>TEST</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<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="TEST.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtNjU0MzcyMTk1Ozs+iI5lAOcC76OEBXsnSYfQpECsHAI=" />
</form>
</body>
</html>