D
David Krussow
In a C#/code-behind ASP.NET application, I want to enable the user to view a
few paragraphs. I want to enable the user to select a sentence (or an
individual word) within the paragraph. By *select* I mean that the user
clicks and drags over the word(s) to be selected - just like in any other
application that allows the user to select text. After selecting the desired
text, I want to enable the users to click a button - at which point some
code runs that ultimately results in the selected text (and not any of the
unselected text) being saved to a database.
I can do practically all of this. The part I'm hung up on is
programmatically determining which text the user selected within the
paragraph. Is that even possibe? If so, how?
Thanks in advance.
few paragraphs. I want to enable the user to select a sentence (or an
individual word) within the paragraph. By *select* I mean that the user
clicks and drags over the word(s) to be selected - just like in any other
application that allows the user to select text. After selecting the desired
text, I want to enable the users to click a button - at which point some
code runs that ultimately results in the selected text (and not any of the
unselected text) being saved to a database.
I can do practically all of this. The part I'm hung up on is
programmatically determining which text the user selected within the
paragraph. Is that even possibe? If so, how?
Thanks in advance.