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. Insert large text into a textbox??

Insert large text into a textbox??

Scheduled Pinned Locked Moved ASP.NET
designquestion
3 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.
  • C Offline
    C Offline
    caheo
    wrote on last edited by
    #1

    I have a large amount of text want to insert into a textbox. I would like to know how I can do that? Thanks Both by design time and running time

    J 1 Reply Last reply
    0
    • C caheo

      I have a large amount of text want to insert into a textbox. I would like to know how I can do that? Thanks Both by design time and running time

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      I'm not sure how much text you consider a "large amount" -- but generally all you need to do is create the TextBox and set the TextMode property to "MultiLine". At design time, you can type as much as you wish in the Text property. At run time, there are any number of methods you could use to populate the value of the control: data binding, setting the value in code, loading the value from a file, etc.

      C 1 Reply Last reply
      0
      • J John Kuhn

        I'm not sure how much text you consider a "large amount" -- but generally all you need to do is create the TextBox and set the TextMode property to "MultiLine". At design time, you can type as much as you wish in the Text property. At run time, there are any number of methods you could use to populate the value of the control: data binding, setting the value in code, loading the value from a file, etc.

        C Offline
        C Offline
        caheo
        wrote on last edited by
        #3

        Thanks guy I figured out by using StreamReader.

        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