'# Here gCon is a connection object
'# Build DataReader
tmpDataReader = daUtil.BuildDataReader(gCon, strSQL)
MyDataList1.DataSource = tmpDataReader
MyDataList1.DataBind()
'# Very important to close the DataReader
tmpDataReader.Close()
'# Now build the second DataReader
tmpDataReader = daUtil.BuildDataReader(gCon, strSQL2)
MyDataList2.DataSource = tmpDataReader
MyDataList2.DataBind()
tmpDataReader.Close()
|