Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4015466
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:37:21+00:00 2026-05-20T09:37:21+00:00

I am using Multi-line TextBox through which users will be able to enter data

  • 0

I am using Multi-line TextBox through which users will be able to enter data which will be saved on to the SQL Server 2008 database. There is an other process, which reads this data from the table and writes to a text file.

Problem:
If the data entered by users in text box contains <Enter> from keyboard, it is saving to the database with some spaces replacing the <Enter>.

Some how if I read the same data to a text box on webpage, it is being displayed properly.

But, if my second process that reads the data from database and prints to a text file, it is not keeping the text format properly. It is not retaining the <Enter> in the data being printed to text file.

Can any one help me how to retain the <Enter> in the text file being generated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:37:22+00:00Added an answer on May 20, 2026 at 9:37 am

    It sounds like your <Enter> is being retained in the database since it works correctly when you output to the textbox again.

    My guess is that the problem is either in the process writing them to the textfile stripping out CR and LF characters or your text reader isn’t achknowledging them.

    If you open the text file in Notepad++ and then go to view –> show symbol and make sure “Show End of Line” is checked you should be able to see if the CR and LF characters at the end of the line are preserved when written to the text file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using a multi-line TextBox (AcceptsReturn=True) in Silverlight, line feeds are recorded as \r
Is it possible to have a multi-line textbox (im using asp.net c#) where the
I am writing text to a multi-line text box using data from the serial
Using Windows Server 2003 in a multi-user environment (via Remote Desktop, using it as
We are able to provide a connection to a textbox using ADO.net to the
I am trying to match a multi line text using Java. When I use
I am using a multi-dimensional dynamic array in delphi and am trying to figure
A legacy embedded system is implemented using a cooperative multi-tasking scheduler. The system essentially
I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into
As I am using for-loops on large multi-dim arrays, any saving on the for-loop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.