hi i want to get the selected value and put it in another control on the same page how can i do that i am using asp.net.
the code i tried gets me the selected value but i cant get the selected value and put it in a diffrent control. what i want to do is, from all the data in the control i want the give the user an option to select few lines and save it in the databse so wht i want to do is when user selects few lines or words and then clicks on the menubar button i want to save thoses lines or words in the database.
the code i used is
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var txt=oEditor.EditorDocument.selection.createRange().text
document.getElementById('<%=TextBox2.ClientID%>').innerText=txt
i would be greatful if someone could helpme out
thanks
san
the code i tried gets me the selected value but i cant get the selected value and put it in a diffrent control. what i want to do is, from all the data in the control i want the give the user an option to select few lines and save it in the databse so wht i want to do is when user selects few lines or words and then clicks on the menubar button i want to save thoses lines or words in the database.
the code i used is
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var txt=oEditor.EditorDocument.selection.createRange().text
document.getElementById('<%=TextBox2.ClientID%>').innerText=txt
i would be greatful if someone could helpme out
thanks
san