Solved

DataList with datareader

Posted on 2006-10-19
3
491 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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