Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. multiline property of textbox

multiline property of textbox

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MalarGayu
    wrote on last edited by
    #1

    i have a textbox with TextMode="MultiLine" and i need to set the text to some values which my default should appear as follows: --- ENTER YOUR CONTENT HERE --- ============================================== *|LIST:DESCRIPTION|* Unsubscribe *|EMAIL|* from this list: *|UNSUB|* Our mailing address is: *|LIST:ADDRESS|* Our telephone: *|LIST:PHONE|* Forward this email to a friend: *|FORWARD|* Update your profile: *|UPDATE_PROFILE|* but i am not able to get one after the other can anyone help me K.Gayathri

    L 1 Reply Last reply
    0
    • M MalarGayu

      i have a textbox with TextMode="MultiLine" and i need to set the text to some values which my default should appear as follows: --- ENTER YOUR CONTENT HERE --- ============================================== *|LIST:DESCRIPTION|* Unsubscribe *|EMAIL|* from this list: *|UNSUB|* Our mailing address is: *|LIST:ADDRESS|* Our telephone: *|LIST:PHONE|* Forward this email to a friend: *|FORWARD|* Update your profile: *|UPDATE_PROFILE|* but i am not able to get one after the other can anyone help me K.Gayathri

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you are talking about showing text in multiple lines, you can use Environment.NewLine constant to do that.

      TextBox1.Text = "Line 1" + Environment.NewLine + "Line 2" + Environment.NewLine + "Line 3";

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups