Solved

DataList with datareader

Posted on 2006-10-19
3
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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