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