Determing the selected text in code-behind

Last post 02-15-2006, 1:45 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-15-2006, 12:59 PM 15956

    Determing the selected text in code-behind

    Pre-sales question.  If this an appropriate forum for such.

    I've search your on-line forums and can't find an answer so I thought I would try to communicate via this mechanism.

    I have the trial editor installed, as always your stuff is easy to install but the purpose of my project is still eluding me.

    I need to publish a large document to the internet.  This is a 14,000 page document that users will be able to page through.  I need the users to provide comments about the document.  Here's my issue:  I need to know the location in the document they are in.  The page is easy.  Getting the location within the page?  Ouch.  My thought was to use your editor and have the user select a portion of text then press a button.  In the code-behind I would trap either the original text or the text location by start and end line.  I often do this in text boxes so I just assumed that I would do the same in an RTF editor.  I understand the issue of rendered HTML that displays screen text verses raw original HTML, but is there any way to accomplish what I'm looking for? 

  •  02-15-2006, 1:45 PM 15962 in reply to 15956

    Re: Determing the selected text in code-behind

    mjswenson726,
     
    Welcome to CuteSoft support forum.
     
    >>In the code-behind I would trap either the original text or the text location by start and end line. 
     
    Here is a simple solution:

    Get the selection using the JavaScript (http://cutesoft.net/example/JavaScript-API.aspx).

    And put the result in a hidden field. When post back, read the value of this hidden field.

    Hope it helps.

    Let me know if you have any further questions.

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML