Solved

DataList with datareader

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

16 Experts available now in Live!

Get 1:1 Help Now