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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP.NET Binder Problem

Reply to Message Icon

Name: tauruss19
Date: April 9, 2004 at 23:38:34 Pacific
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



Sponsored Link
Ads by Google

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

That looks fine. Did you try running it?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ASP.NET Binder Problem

Asp.net auto-generate metatags www.computing.net/answers/webdevel/aspnet-autogenerate-metatags/2711.html

ASP.Net, dynamically create button www.computing.net/answers/webdevel/aspnet-dynamically-create-button-/1849.html

variables in ASP.NET www.computing.net/answers/webdevel/variables-in-aspnet/942.html