locked
how to make new line in asp.net using visual basic RRS feed

  • Question

  • User-1294421521 posted

    hi,

    may i know how to make new line for new data for asp.net using visual basic?

    this is the code that i use now

    cmd10 = "Update ComputerRecognition set name='" & Label8.Text & "'+''+name,date='" & Date.Today.ToShortDateString() & "'+''+date, time='" & FormatDateTime(Now(), 4) & "'+''+time where namelist='Alan Boon Khen Ong'"

    but the result from name is localhostlocalhost but i wan it show like localhost then another localhost in new line like

    localhost

    localhost

    so what code i need to add in?

    thanks

    Tuesday, June 24, 2008 10:25 PM

All replies

  • User1766772294 posted

     Environment.NewLine

    Tuesday, June 24, 2008 11:02 PM
  • User-999963490 posted

     Dim sb As New StringBuilder

     sb.Append(part of your code)

     sb.AppendLine()

     sb.Append(another part of your code)

    Then to get all of that together use sb.ToString()
     

    Wednesday, June 25, 2008 10:00 AM