TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
harish main
NA
10
0
not able to display SQL data in newline into multiline textbox using C#
Mar 14 2011 3:02 PM
I have following code in c# for retrieving data and displaying the content into multiline textbox. The content is getting displayed but iam unable to show it in new line on different timestamps. I want 1:10 on first line, followed by 1:11 on next line and so on.
LOG_DETAILS column has value like:
'1:10 Database connection to log db was successfully made by user1. 1:11 address error - the address column contains invalid special character therefore webservice call wont be made. 1:12 user1 attempted to change the address and did not save changes'
Iam using .Net 1.1 Framework
SqlDataReader sdr = cmd.ExecuteReader();
while (sdr.Read())
{
//Assign to your textbox here
TextBoxLogInfo.Text = sdr["LOG_DETAILS"].ToString();
}
Please help to display such content in new lines in multiline text box.
Your help appreciated
Harish
Reply
Answers (
9
)
OOPS Example
TextBox and Repeater does not work when used together in C#