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

  • SEARCH
  • Home
  • 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 7877975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:31:45+00:00 2026-06-03T03:31:45+00:00

Been searching but not finding a solution. I’ve a textarea, asp:textbox, which I try

  • 0

Been searching but not finding a solution.

I’ve a textarea, asp:textbox, which I try to remove the behavior that text is placed on a second row without the user doing a linebreak. I want it to continue on the same row even thou the textbox itself is not large enough to present all text as long as the user does not press return.

runat="server" Width="387" Height="40px" TextMode="MultiLine" onkeypress="MaxTwohundred(this);" Rows="2" style="overflow-x: scroll; overflow-y:

What is the proper way to accomplish this?

white-space:nowrap Does not do the trick.The user can then not do a simple linebreak by pressing the return button.

Thanks.

Edit

Thanks Tim Medora, it works.

Bellow is what I use.

 TextMode="MultiLine" 
                style="overflow-x: scroll; overflow-y: hidden; " wrap="false"
  • 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-06-03T03:31:46+00:00Added an answer on June 3, 2026 at 3:31 am

    See this sample: http://jsfiddle.net/nDtpL/4/

    While it would be nice to use CSS white-space to control this behavior, browser support is inconsistent (see comments). Instead, I’m using wrap="off" to get the desired behavior (at least in my quick tests on Chrome, IE 9 (and 7 8 emulation mode), and FF).

    Here’s a similar thread: enter does not work in textarea in Internet Explorer 8

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

Sidebar

Related Questions

I've been searching the solution for a while but ended up finding nothing. I
I have been searching the Internet for a solution but not found one, hopefully
I have been searching everywhere but I could not find an answer. I need
I've been searching for a way to do this, but could not find anything
I´m sure it´s on stackoverflow, I´ve been searching but I can´t find it. Which
I've been searching the net but couldn't find a solution for this. I need
I've been searching for a global postcode based regex but not found one. Anyone
I've been searching around this morning and I'm not finding any simple solutions... basically,
I've been searching but have not been able to find this out. Essentially, when
I have been searching desperately for an answer to this question, but not found

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.