It is not possible to get the Selected value in the CodeBehind file at Server. But, it is possible to get the selected text (By
Mouse
or
KeyBoard
) by
JavaScript
. If you need to get the selected value in CodeBehind file, you can set the selected text into a hidden field (Using
Javascript
) and this will let you get the value when the form is submitted (Or, Posted back) to Server.
You will get a few
JQuery
plugin for getting the Selected text if you Google. This
http://perplexed.co.uk/1020_text_selector_jquery_plugin.htm[
^] might help you.