Link to home
Start Free TrialLog in
Avatar of rogaut1
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
ASKER CERTIFIED SOLUTION
Avatar of ovalsquare
ovalsquare

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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);
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.Request
            Dim oResponse As HttpResponse = HttpContext.Current.Response

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.