W
WL
Hi,
I'm trying to build an .ASPX file that returns the contents of a .js file,
so that I can use:
<script language="JavaScript" src="/mypage.aspx"
type="text/javascript"></script>
Even when disabling viewstate etc I still end up with ASP.NET returning
contents as set with
Response.Write("var test=12;") in the PageOnLoad I end up with this extra
HTML code:
Thanks,
Wim
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>page4</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<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 method="post" action="page4.aspx" id="Form1">
<div>
<input type="hidden" name="__VIEWSTATE"
value="/wEPDwUKLTUxMTcwNzgxMGRkPbcvOzDy6UopR2KGJnAsry/0lgY=" />
</div>
</form>
</body>
</HTML>
I'm trying to build an .ASPX file that returns the contents of a .js file,
so that I can use:
<script language="JavaScript" src="/mypage.aspx"
type="text/javascript"></script>
Even when disabling viewstate etc I still end up with ASP.NET returning
contents as set with
Response.Write("var test=12;") in the PageOnLoad I end up with this extra
HTML code:
Thanks,
Wim
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>page4</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<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 method="post" action="page4.aspx" id="Form1">
<div>
<input type="hidden" name="__VIEWSTATE"
value="/wEPDwUKLTUxMTcwNzgxMGRkPbcvOzDy6UopR2KGJnAsry/0lgY=" />
</div>
</form>
</body>
</HTML>