Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTML bold code works for one string but not the other?

Posted on 2011-02-26
3
Medium Priority
?
315 Views
Last Modified: 2012-05-11
I am using the HTML bold code to modify text in a string variable that is then attached to an HTML editor for display.  In one line of the code it works beautiful but in another it does not.  Can someone point me in the right direction?



int i = 0;

                foreach (var rsdatarec in RXresult)
                {

                    rxarray[i] = rsdatarec.rxdata.RxItemName + "<b>Rx Strength = </b>" + rsdatarec.rxdata.RxStrength + "   <b>Take = </b>" + rsdatarec.rxdata.RxTakeValue + "   <b>Frequency = <b>/" + rsdatarec.rxdata.RxFreq + "   <b>Duration = </b>" + rsdatarec.rxdata.RxDuration + "   <b>Dispense = </b>" + rsdatarec.rxdata.RxDespenseValue + "   <b>Refills = </b>" + rsdatarec.rxdata.RxRefillsValue;----------<<<<<<<<<-----problem occurs HERE

                    MyGlobalVars.Rx[i] = rxarray[i];

                    i++;

                }


                // Concantenate Rx Array
                int rxindex;
                MyGlobalVars.RxConCat = "<br /><br /><font color=blue><b>Medications</b></font><br />";  -----------<<< works great HERE---

Open in new window

0
Comment
Question by:kwh3856
[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
3 Comments
 

Author Comment

by:kwh3856
ID: 34990358
line 6 does not work

line 17 does
0
 
LVL 11

Accepted Solution

by:
dougaug earned 2000 total points
ID: 34990365
This part isn't wrong?
....
"   <b>Frequency = <b>/" + rsdatarec.rxdata.RxFreq +
....

Maybe it shoud be
"   <b>Frequency = </b>" + rsdatarec.rxdata.RxFreq +
0
 

Author Closing Comment

by:kwh3856
ID: 34990377
Wow!!! I totaly missed that.  I guess I was to close to the forest to see the trees.  Thanks.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

597 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