Solved

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

Posted on 2011-02-26
3
305 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
  • 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 500 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now