Solved

How can I allow user to highlight and then  Bold characters in a textbox before submitting info to db?   ASP.NET

Posted on 2014-11-22
5
172 Views
Last Modified: 2014-12-12
In other words, I'm trying to allow the user to format the look of the text before submitting it.

Thanks!

string value; 

        int start = TextBox1.Text.StartsWith("CURSOR POSITION");        
        int addOpeningTag = value.Insert(atIndexStartposition, "/<strong/>");

        int end = TextBox1.Text.EndsWith("CURSOR POSITION");
        int addEndingTag = value.Insert(atIndexEndposition, "/<//strong/>");

        value = TextBox1.Text;
        Label1.Text = value;  // put this value in db with storedprocedure 

Open in new window

0
Comment
Question by:bmanmike39
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 40460175
you need to use a rich text box vice a regular text box.http://msdn.microsoft.com/en-us/library/aa970779%28v=vs.110%29.aspx
0
 

Author Comment

by:bmanmike39
ID: 40461061
This does not apply to asp.net
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 500 total points
ID: 40473807
HI, Not sure if you are still looking for an answer here, but you might want to consider TinyMCE to use for a rich text box alternative in asp.net.

This is a free Rich Text Editor you can use in any platform.

http://www.tinymce.com/
0
 

Author Comment

by:bmanmike39
ID: 40496401
I will have accept this answer.  Not what I was looking for, but getting no response.
0
 

Author Closing Comment

by:bmanmike39
ID: 40496402
Thanks
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question