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. Selected Text in a TextBox with TextMode Multiline

Selected Text in a TextBox with TextMode Multiline

Scheduled Pinned Locked Moved ASP.NET
csharphtmlsysadmin
3 Posts 3 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.
  • F Offline
    F Offline
    FJJCENTU
    wrote on last edited by
    #1

    I am tring to access to the user´s selected text inside the text contained in an TextBox ASP .Net server control, but because I do not want to get all the text but only the selected by the user I cann't use the text property, please any suggestion for do it with the TextBox or with another control which let do it inside a an ASP .Net site. I choose TextBox Multiline because it yields an TextArea Html tag in the explorer and because there is no a RitchTextBox control in ASP .Net but perhaps is there an other control for do it. Best regards

    S A 2 Replies Last reply
    0
    • F FJJCENTU

      I am tring to access to the user´s selected text inside the text contained in an TextBox ASP .Net server control, but because I do not want to get all the text but only the selected by the user I cann't use the text property, please any suggestion for do it with the TextBox or with another control which let do it inside a an ASP .Net site. I choose TextBox Multiline because it yields an TextArea Html tag in the explorer and because there is no a RitchTextBox control in ASP .Net but perhaps is there an other control for do it. Best regards

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      FJJCENTU wrote:

      because there is no a RitchTextBox control in ASP .Net but perhaps is there an other control for do it

      Did you had a look at it: AJAXtoolkit HTMLEditor Demonstration[^]

      1 Reply Last reply
      0
      • F FJJCENTU

        I am tring to access to the user´s selected text inside the text contained in an TextBox ASP .Net server control, but because I do not want to get all the text but only the selected by the user I cann't use the text property, please any suggestion for do it with the TextBox or with another control which let do it inside a an ASP .Net site. I choose TextBox Multiline because it yields an TextArea Html tag in the explorer and because there is no a RitchTextBox control in ASP .Net but perhaps is there an other control for do it. Best regards

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        FJJCENTU wrote:

        I choose TextBox Multiline because it yields an TextArea Html tag in the explorer

        Have you try with JavaScript controlId.SelectionStart ? Here is an nice example as well how to get selected textarea value using javascript [^]

        Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

        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