Computing.Net > Forums > Web Development > ASP.NET Binder Problem

ASP.NET Binder Problem

Reply to Message Icon

Original Message
Name: tauruss19
Date: April 9, 2004 at 23:38:34 Pacific
Subject: ASP.NET Binder Problem
OS: Windows XP
CPU/Ram: Pentium 4, 256MB
Comment:

I am using DataBinder to show table data in asp.net datalist control in a table using dataset. The databinder is showing records in table row wise that is first record in first row, second record in second row and so on.
The problem is that I want to show record like this

row1.col1 = record1
row1.col2 = record2
row2.col1 = record3
row2.col2 = record4
row3.col1 = record5
row4.col2 = record6

and so on.
Is it possible to show data like this with Databinder?


<asp:datalist id="dlFeaturedProducts" CellPadding="2" ForeColor="Black" Width="100%" runat="server">
<ItemTemplate>
<table cellpadding="10" style="font: 8pt verdana" width="45%" align="center">
<tr>
<td valign="top" width="100%">

<hr size='1' noshade>


<%#DataBinder.Eval(Container.DataItem, "store_name")%>
</p>

</td></tr></table>
</ItemTemplate>
</asp:datalist>

Thank You.

Hamid Mahmood

Taurus Mahmood


Report Offensive Message For Removal


Response Number 1
Name: gpp
Date: April 12, 2004 at 05:30:53 Pacific
Reply: (edit)

That looks fine. Did you try running it?


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: ASP.NET Binder Problem

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge