Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6849891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:03:17+00:00 2026-05-27T01:03:17+00:00

So, I have text entered in textbox, which I need to show as preview

  • 0

So, I have text entered in textbox, which I need to show as preview in label. Problem is, it has specific formatting, so @A is trigger for red color, and text is red colored util some other text color sign is inserted (like we at some point insert @B and text is green from that point, and so on).

That wouldn’t be big problem if there weren’t two problems:

  1. Obviously this is web application, and although is written in C#, many things that can be done on windows forms, can’t be done here.
  2. Bigger problem, that I can’t solve is that I also have signs for text background and for text hight (which I would solve in classes).

    font color   red_____________green___________blue__________
    font bacgr.  black_________________________________red_____
    font hight   normal_________________double_________________
    

I hope you get it, I have three groups of parameters (font color, background color, and text hight) and parameter from one group should change one property, and others should stay.

This is sure complicated, but at least I would need idea how to make that for example @A triggers that color of text in Label becomes red, and that @A is deleted, and when after that is for example @B, at that point text becomes green, and so on.
Have in mind that this is ASP.NET, so many C# features are not available.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:03:17+00:00Added an answer on May 27, 2026 at 1:03 am

    The simplest way to accomplish this would be parse the string for your tags and replace them with equivalent HTML/CSS tags (<span class=”red”>) that implement the formatting you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have windows application in which i need to convert amount entered in text-box
I have set up an update query which will update values entered into text
I have an input of type text , from which I have already entered
I have java source code in a text file. There has to be entered
I have a PHP Script which has several text areas. What I would like
I have a C#/WinForms rich textbox for which I need to be able to
I have information entered into a text box on an ASP.net 3.5 page. when
I have a text-area where text and an image url is entered. Text is
what i have is a textbox into which the user types a string. The
I want to create a textbox, which can be edited and shows the text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.