Textbox issues

Last post 03-25-2008 3:58 PM by werwin12. 6 replies.

Sort Posts:

  • Textbox issues

    03-25-2008, 2:32 PM
    • Loading...
    • werwin12
    • Joined on 10-12-2005, 8:27 AM
    • Posts 119

    Is there propertys to make it so when you press enter it doesnt submit the text box and away to auto new line as you type? Like when i made this post u can keep holding space and eventrully it make a new line instead of keep going and a scroll bar popping up

  • Re: Textbox issues

    03-25-2008, 2:43 PM
    • Loading...
    • bpag
    • Joined on 04-07-2006, 4:05 PM
    • Columbus, OH
    • Posts 533

    You can use a multi-line textbox by setting the TextMode property to MultiLine. That way enter won't submit it will just move to a new line and let you keep typing and if you set Wrap="true" it should word wrap.

    If this post answered your question please remember to 'Mark as Answer'!
  • Re: Textbox issues

    03-25-2008, 3:05 PM
    • Loading...
    • bobmmp
    • Joined on 09-06-2004, 6:56 PM
    • Colorado
    • Posts 224

    bpag:

    You can use a multi-line textbox by setting the TextMode property to MultiLine. That way enter won't submit it will just move to a new line and let you keep typing and if you set Wrap="true" it should word wrap.

    Yes, this will html render to a textarea for you!

  • Re: Textbox issues

    03-25-2008, 3:21 PM
    • Loading...
    • smcirish
    • Joined on 04-16-2007, 9:27 PM
    • Texas
    • Posts 230

    Make sure you use good edit checks/data clean up routines if you use multi-line.  I had trouble when users would copy/paste from Excel.

    See this post on data cleanup for special characters:  http://forums.asp.net/t/1174006.aspx

     

    ~ Remember To Mark The Posts Which Helped You As The ANSWER ~
    Filed under:
  • Re: Textbox issues

    03-25-2008, 3:32 PM
    • Loading...
    • werwin12
    • Joined on 10-12-2005, 8:27 AM
    • Posts 119

     i thought i set it to multi-line works but doesnt wrap at all it just keeps going and going and going on the first line unless u press enter

  • Re: Textbox issues

    03-25-2008, 3:53 PM
    Answer
    • Loading...
    • bpag
    • Joined on 04-07-2006, 4:05 PM
    • Columbus, OH
    • Posts 533

    wrap only works if you have text="multiline" set so make sure you have it set to multiline. Having said that if you are using Firefox it will wrap the text but it doesn't break words so if you just keep entering characters with no spaces it will keep them all on one line but if you enter words with spaces between it will wrap. This is different behavior than IE exhibits.

    If this post answered your question please remember to 'Mark as Answer'!
  • Re: Textbox issues

    03-25-2008, 3:58 PM
    • Loading...
    • werwin12
    • Joined on 10-12-2005, 8:27 AM
    • Posts 119

     Ahhh okay didnt know that about firefox. It works :-)

Page 1 of 1 (7 items)
Microsoft Communities
Page view counter