getting procedure results in a table

amber

New Member
when u use <BR>SqlDataReader result = myCommand.ExecuteReader(CommandBehavior.CloseConne ction);<BR>to get the results back from a stored procedure, how can u put the datareader results (these are rows with 1 field) in a table?<BR>or are there other ways?<BR>spanxUse a datagrid, this is what they are made for. Put something like this in your html:<BR><asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid><BR><BR>Then do something like this:<BR>DataGrid1.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConne ction);<BR>DataGrid1.DataBind();<BR>sorry for the misunderstanding, i meant into an array
 
Back
Top