• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1759
  • Last Modified:

Hide scroll bar on multi-line ASP.NET textbox

I am using a text box on a webform in an asp.net project I am working on.  Some of the text boxes are set to MultiLine instead of single line.  I am wondering if it is possible to hide the scroll bar from being displayed?
0
Mike_Stevens
Asked:
Mike_Stevens
  • 2
1 Solution
 
deepaknetCommented:
<textarea rows="5" cols="60" style="overflow:hidden">
   Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.
</textarea>
0
 
Mike_StevensAuthor Commented:
The might work for an textarea control but i am using an asp.net textbox
0
 
mrichmonCommented:
textboxname.Attributes.Add("style", "overflow:hidden;")
0
 
mrichmonCommented:
Did you even try my solution which adds that attribute to an ASP.NET textbox?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now