Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Yoshitha #1
about displaying data in datalist control
hi
I have datalist control in my ASP.NET application
the problem here is
i have used a textbox with multiline true propertly when i enter data like
"fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd
jfdsjfksdjfksdjkfjsdfjksdjfsdjfd
fdsfhjsdhfjsdhfjf dsjf dsjfhjsdfhjksdh d fdsjf
hsdjkfhdjsfhsdjfh ds
fdsf dshfjdhsjfhsdjhfjsdh fds
dsjfh sdfhdsfjdshfjhdsfds"
it is storing as it is ...when i displaying in the datalist like this
Dim con As New
OleDbConnection("provider=sqloledb;server=localhos t;database=tempdb;trusted_
connection=Yes")
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles
MyBase.Load
Dim da As New OleDbDataAdapter("select * from Message", con)
Dim ds As New DataSet
da.Fill(ds, "Message")
dltMessages.DataSource = ds
dltMessages.DataBind()
End Sub
it is showing in a single line it is not displaying in paragrah wise .......
how to display data in data list as it is.
Please help me ....
thanx in advance
yoshitha
Yoshitha Guest
-
DATALIST control
Hello, I have a doubt... I have a TextBox by name txtMessage.Text ,Button by name btnSend and Datalist Control by name dltMessage i my aspx... -
Getting control of Items within a Datalist
I have a problem as I have placed a dropdownlist in a datalist. Whenever the selected index changes I need to change a label inside the datalist.... -
DataList parrent control with a Repeater child control
I've been trying to bind a Repeater 'child control' to a DataList control and seem to have lost the plot. Tec spec: Connection to SQL server 2... -
Use the DataList Control to Present and Edit Data PART 2
Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Web.UI Imports System.Web.UI.WebControls Imports... -
Use the DataList Control to Present and Edit Data
I found some good information On "Use the DataList Control to Present and Edit Data" at this site... -
Brock Allen #2
Re: about displaying data in datalist control
You should call String.Replace("\r\n", "<br/>") -- replace the CrLf with
HTML breaks.
-Brock
DevelopMentor
[url]http://staff.develop.com/ballen[/url]
> hi
> I have datalist control in my ASP.NET application
> the problem here is
> i have used a textbox with multiline true propertly when i enter data
> like
> "fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd
> jfdsjfksdjfksdjkfjsdfjksdjfsdjfd
> fdsfhjsdhfjsdhfjf dsjf dsjfhjsdfhjksdh d fdsjf
> hsdjkfhdjsfhsdjfh ds
> fdsf dshfjdhsjfhsdjhfjsdh fds
> dsjfh sdfhdsfjdshfjhdsfds"
> it is storing as it is ...when i displaying in the datalist like this
> Dim con As New
>
> OleDbConnection("provider=sqloledb;server=localhos t;database=tempdb;tr
> usted_
> connection=Yes")
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles
> MyBase.Load
> Dim da As New OleDbDataAdapter("select * from Message", con)
> Dim ds As New DataSet
> da.Fill(ds, "Message")
> dltMessages.DataSource = ds
> dltMessages.DataBind()
> End Sub
> it is showing in a single line it is not displaying in paragrah wise
> .......
> how to display data in data list as it is.
> Please help me ....
> thanx in advance
> yoshitha
Brock Allen Guest



Reply With Quote

