Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2004, 01:11 AM
Authorized User
 
Join Date: Jun 2004
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default DataList does not do word wrap

Hi there,

I have got a problem while using DataList, I am developing a web application for Discussion Forum. I am showing responses received from user using a DataList. but DataList does not show text the way user has typed. Instead of identifying new line character (i.e. Return), it continues line till the end of column and then wraps to the next line.
eg.
if the actual text is

(hi
    I am Vinod Pawar)

like this, it shows

(hi I am vinod Pawar)



Vinod Pawar
Software Developer
India
__________________
Vinod Pawar
United States
 
Old October 27th, 2004, 06:22 AM
Authorized User
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aravwind Send a message via Yahoo to aravwind
Default

inside the template use <div>
 
Old October 27th, 2004, 11:00 PM
Authorized User
 
Join Date: Jun 2004
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default

thanx aravwind,

I worked out that problem by replacing "vbCrLf" with "<br>" tag and it is working fine for me.

here is the way I have done it.

        <%# REPLACE(container.dataitem("Message"), vbCrLf, "<br />")%>



Vinod Pawar
Software Developer
India





Similar Threads
Thread Thread Starter Forum Replies Last Post
word wrap in listbox vjyrakesh C# 2005 1 May 22nd, 2008 09:39 AM
word wrap.... rupen CSS Cascading Style Sheets 2 January 24th, 2007 03:10 PM
Text wrap in Datalist helix24 ASP.NET 2.0 Basics 0 May 12th, 2006 07:45 PM
IE6 word-wrap problem? beckfield XSLT 5 March 4th, 2005 02:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.