|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is it possible to get only the "Selected" text out of a TextBoxOk guys, here is what I am trying to do.
Lets say I have a TexBox server control on a page. Lets say that TextBox has a bunch of text in it. Lets say that a user uses thier mouse to select a small part of the text then hits a button. I would like to be able on that button push to trap / get only the text the user has selected. Anyone have any ideas, I am coming up with nothing on google. Thanks Chris hi Chris,
You are looking at writing some javascript to exclude the unselected text in your textbox when your submit button is clicked, that should populate the forms collection with the updated value in the textbox before the submit occurs. The following link might help you get started with the js you need to write. http://www.quirksmode.org/js/selected.html Good luck, Alessandro Zifiglio Show quoteHide quote "Chris Bates" <ChrisBa***@discussions.microsoft.com> ha scritto nel messaggio news:AB4CEA3D-682F-47F0-96BF-2DAE2BAEE5E7@microsoft.com... > Ok guys, here is what I am trying to do. > > Lets say I have a TexBox server control on a page. > > Lets say that TextBox has a bunch of text in it. > > Lets say that a user uses thier mouse to select a small part of the text > then hits a button. > > I would like to be able on that button push to trap / get only the text > the > user has selected. > > Anyone have any ideas, I am coming up with nothing on google. > > Thanks > > Chris
Gridview extra header row with command button and paging
validation message only show in val summary when ShowSummary=true when no js to execute on client Formview Question Event from one WebControl triggering an event in another Web control Client ID of User Control in Page templates XML Dropdownlist- Custom DataTextField HttpContext.Current.Session problem radiobuttons - no list Display text with <newline> characters... Dropdown List with Parameters |
|||||||||||||||||||||||