Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating table on the fly - missing line breaks
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Generating table on the fly - missing line breaks
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01294342
Message ID:
01294342
Views:
47
Hi everybody,

I'm trying to figure out why the description field misses the line breaks when displayed in the web page.

Here is a code from the class which I believe is responsible for creating the entries in the table format:
 tcTitle.Text += "\">" + (string)rdr["EventName"] + "</a><br></p>";
                tcDescription.Text = "<p class=\"bodytext_calendar\">" + (string)rdr["Description"]
                    + "</p>";
                rInfo.Cells.Add(tcSpacer1);
                rInfo.Cells.Add(tcDate);
                rInfo.Cells.Add(tcTime);
                rInfo.Cells.Add(tcTitle);
                rInfo.Cells.Add(tcSpacer2);
                rInfo.Cells.Add(tcDescription);
                rInfo.Cells.Add(tcSpacer3);
                tblList.Rows.Add(rInfo);
                tblList.Rows.Add(rBar);
Do you see what may be wrong here?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform