Solved

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

Posted on 2011-02-26
3
308 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
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 to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

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