?
Solved

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

Posted on 2011-02-26
3
Medium Priority
?
313 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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