Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected IEnumerable RenderAutoOrderList()
- {
- DataCommand cmd = new DataCommand();
- IDataReader rd = null;
- rd = cmd.GetReader(@"Select AutoOrderID, Total, LastRunDate, NextRunDate From AutoOrder Where CustomerID={0}", WebIdentity.Current.CustomerID);
- while(rd.Read())
- {
- yield return rd[0].ToString();
- }
- }
- and i call it using <%=RenderAutoOrderList() %> from within the Default.aspx
Add Comment
Please, Sign In to add comment