Solved

DataList with datareader

Posted on 2006-10-19
3
468 Views
Last Modified: 2012-05-05
I have put a datalist on my webform and in the item template i have put the table which contains html text boxes i want to bind these text boxes from the fields of datareader so how should i ? please help out if any one knows. thanks
0
Comment
Question by:zuheb
3 Comments
 
LVL 13

Accepted Solution

by:
jeebukarthikeyan earned 125 total points
ID: 17781130
hi,

<asp:DataList id="datalist" runat="server" RepeatColumns="4" RepeatDirection="Vertical" GridLines="Both" RepeatLayout="Table" Caption="BuilderAU.com.au Test">
<ItemTemplate>
<asp:Label Text='<%# Eval("a1") %>' Runat="Server" ID="lblCompanyName"/>
</ItemTemplate>
<AlternatingItemTemplate>
<asp:TextBox id="tb4" Text'<%# Eval("b1") %>' runat="server" />
</AlternatingItemTemplate>
<SeparatorTemplate>
</SeparatorTemplate>
</asp:DataList>

b u d d h a
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remove a text string from the end of another string 5 29
Binding a check box in an Asp.net DataGrid 4 38
Asp.net mvc 5 5 43
ASP.NET Web API or ASP.NET Core MVC? 3 51
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now