?
Solved

how would i replace  a word or part of a word in a label containing a few paragraphs or text

Posted on 2013-01-28
2
Medium Priority
?
277 Views
Last Modified: 2013-01-28
I would like to be able to replace word, or parts of words, submitted in a text box before uploading.  How it works now, is they type in the information and hit submit, in a label below the TextBox, it shows what they typed, and how it will look. Then a button become visible for them to continue.  What i would like to do is parse through what they typed and replace or delete unexceptionable words or parts of word.  I know this can be done, but don't know how.

Thanks.

BTW  It's in  c#
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
2 Comments
 
LVL 6

Accepted Solution

by:
nickinthooz earned 1200 total points
ID: 38829628
use the .replace to replace the text
string myString = TextBox1.Text.ToString();  
        string replaceString = myString.Replace("oldtext","newtext"); 

Open in new window

0
 
LVL 23

Assisted Solution

by:Michael Fowler
Michael Fowler earned 800 total points
ID: 38829680
To remove or replace words from the string you will need to determine what needs to be replaced and this could prove problematic as you would need access to a dictionary to identify non-word strings and a listing of all invalid/reserved words

Michael
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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