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
LVL 2
rogaut1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ovalsquareCommented:
Do you mean to say that you want add a new line within a Response.Write? If so, just add <br /> within the string where you the new line to be inserted.

Ted

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
raterusCommented:
though you really shouldn't be using Response.Write to write out any html....
sachitjainCommented:
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);
DevastatedCommented:
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.
DevastatedCommented:
just to make sure - that is in capitals RESPONSE.WRITELN

i.e. LN to represent line (not IN) at the end.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.