![]() |
| ||
| Recognize and use spaces in multiline textbox Okay so I have a multiline textbox that accepts user input and stores it in a database. I then have another form that queries for this field and displays it. Everything is working fine, except for the fact that it won't recognize new lines when the user presses enter. I am at a loss. I need the form to in some way, accept enter to create a new line and output it from the database with the line breaks the way the user inputs them. This is aspx with sqlserver if it matters. |
| ||
| Re: Recognize and use spaces in multiline textbox if this is aspx why didnt you post it there? you have to replace newline characters with <br /> so it displays properly. i created a sample application, i attach it to this post : Default.aspx : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> Default.aspx.cs : using System; |
| ||
| Re: Recognize and use spaces in multiline textbox 1 Attachment(s) i couldnt attach the project to the previous post so here it is |
| All times are GMT -4. The time now is 7:25 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC