467,116 Members | 1,182 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

Saving text highlighted anywhere on web page to a C# string

Hello Everyone!

I saw a few discussions on saving highlighted text in a text box. I am interested in saving text highlighted anywhere on a web page and to save that text as a string in C#. I know C# fairly well, but I'm a newbie with JavaScript and ASP.NET. If anyone knows a simple elegant way to do this I would really appreciate it, but I'll take any solution at this point. Even if you can point me in the right directions that would be appreciated. Thanks in advance.

Feb 24 '07 #1
  • viewed: 1436
3 Replies
Expert Mod 8TB
Welcome to The Scripts, Bob.

See this page to get your selection using Javascript. Then store this in a text box or textarea as shown on that page. Then send that form to a page which contains your C#/ASP.NET code. If you need help on that, post in the .NET forum.
Feb 26 '07 #2
Thanks acoder! Looks like exactly what I was trying to find.

Mar 4 '07 #3
Expert Mod 8TB
You're welcome. Glad I could be of help.
Mar 4 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Doug van Vianen | last post: by
3 posts views Thread by Christophe Guillon | last post: by
5 posts views Thread by Steven | last post: by
1 post views Thread by JemPower | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.