Help i can't think, dataset and asp

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I know I have seen this and done this but I just can't remember how.

In my C# code behind I call a web service and get a dataset.
DataSet EIADataSet = SqlHelper.ExecuteDataset(ConnectionString,
"ap_FundsReport", "valu1");

Now How can I show this data via the ASP code thur script tags
<%= EIADataSet.fieldname%>?

What do i need to do on the source side so I can place the scrip call for
field values within my asp table code?


<table style="position: relative">
<tr>
<td style="width: 156px"><%= EIADataSet.fieldname%></td>
</tr>
</table>

Thanks for the help!

Brian
 
you need to wrap the tr (table row) in a asp:repeater. This is databindable
and will repeart the tablerow for each datarow in the dataset. Also you need
to change the
tag for something like <%# DataItem.fieldname %>

HTH

Ciaran O'Donnell
 
Back
Top