I need replace a selected word in the text of textBox not all text I can´t use SelectedText or SelectionLength like windows Form in asp.net
-
I need replace a selected word in the text of textBox not all text I can´t use SelectedText or SelectionLength like windows Form in asp.net and I do not know what that word is selected....
-
I need replace a selected word in the text of textBox not all text I can´t use SelectedText or SelectionLength like windows Form in asp.net and I do not know what that word is selected....
Maybe this will help, http://webcloud.se/log/Selecting-text-with-JavaScript/[^] BTW you don't need to repeat the question in the subject, or visa versa
I know the language. I've read a book. - _Madmatt
-
I need replace a selected word in the text of textBox not all text I can´t use SelectedText or SelectionLength like windows Form in asp.net and I do not know what that word is selected....
You can use String.Replace. Like,
myString = "This is a test.";
myString = Regex.Replace(myString, " is", " was"); -
You can use String.Replace. Like,
myString = "This is a test.";
myString = Regex.Replace(myString, " is", " was");the question is I do not know that word is selected.