rogaut1
asked on
Response.Write : How do I specify I want a newline
For every line I am doing a Reponse.Write I want to change lines....How do I do that ?
Thanks
Robert
Thanks
Robert
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
though you really shouldn't be using Response.Write to write out any html....
Raterus is correct. In ASP.Net there is no need to write HTML through ASP.Net. If u really want to do it then i think this approach would be better
string html = "<html>
<body>
<table width="100%">
<tr>
<td align="left">Hello World</td>
</tr>
</table>
</body>
</html>";
Response.Write(html);
string html = "<html>
<body>
<table width="100%">
<tr>
<td align="left">Hello World</td>
</tr>
</table>
</body>
</html>";
Response.Write(html);
Hi,
have you tried response.writeln ?
by the way if you want to use response.write from a code behind then you need to instantiate akin to the following variables:-
Dim oRequest As HttpRequest = HttpContext.Current.Reques t
Dim oResponse As HttpResponse = HttpContext.Current.Respon se
you can then output html from a code-behind using
oResponse.write ("howdy<br />")
Hope this helps.
have you tried response.writeln ?
by the way if you want to use response.write from a code behind then you need to instantiate akin to the following variables:-
Dim oRequest As HttpRequest = HttpContext.Current.Reques
Dim oResponse As HttpResponse = HttpContext.Current.Respon
you can then output html from a code-behind using
oResponse.write ("howdy<br />")
Hope this helps.
just to make sure - that is in capitals RESPONSE.WRITELN
i.e. LN to represent line (not IN) at the end.
i.e. LN to represent line (not IN) at the end.