This project has moved. For the latest updates, please go here.

Add a /n character to go to a new line

Topics: Developer Forum, User Forum
Jun 1, 2011 at 7:21 AM

Hi all,

First sorry for my horrible english, my problem is that I have this piece of code:

        Dim codice As String
        Dim doc As New HtmlDocument
        Dim coll As HtmlNodeCollection
        Dim node As HtmlNode
        Dim nuovo As HtmlNode

        codice = "<li><a href=""#"" onclick=""ApriClass('" + D_Clas.SafeFileName + "')"" title="""">� " + T_ClasNome.Text + "</a></li>"
        coll = doc.GetElementbyId("subnavi").SelectNodes("ul")
        node = coll.Last
        nuovo = HtmlNode.CreateNode(codice)
This add a line of html in "codice" at a specified position...but i've noticed that everytime it write to my html file it doesn't go to a new line, so it will write:
(1st item)<li><a href="#" onclick="ApriClass('classificagiocatori3.htm')" title="">� 3 Class</a></li>(2nd item)<li><a href="#" onclick="ApriClass('classificagiocatori.htm')" title="">� classificagioca.0tori.htm</a></li>

So how can I go to a new line?


Many thanks in advance...