xStrongTowerx
Programmer
Hi,
I'm migrating to ASP.NET from ASP 3 and I have a question about syntax. Apparently, all code in ASP.NET occurs between <script>...</script> tags rather than using <%...%>.
So my question is, is it still possible to have a subroutine that spans HTML like this:
<script language="VB" runat="server">
Sub [aSubName]
If [Condition] then
</script>
<div>Some html here.</div>
<script language="VB" runat="server">
End if
End Sub
</script>
I know you're supposed to say Response.Write("<div>Some html here.</div>", however, that won't work with really long blocks of HTML code, and it doesn't work with server-side includes, either.
Thanks for your input,
xSTx
I'm migrating to ASP.NET from ASP 3 and I have a question about syntax. Apparently, all code in ASP.NET occurs between <script>...</script> tags rather than using <%...%>.
So my question is, is it still possible to have a subroutine that spans HTML like this:
<script language="VB" runat="server">
Sub [aSubName]
If [Condition] then
</script>
<div>Some html here.</div>
<script language="VB" runat="server">
End if
End Sub
</script>
I know you're supposed to say Response.Write("<div>Some html here.</div>", however, that won't work with really long blocks of HTML code, and it doesn't work with server-side includes, either.
Thanks for your input,
xSTx