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
171 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 80

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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!
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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