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
173 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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