Newbie to VB.Net & ADO.Net...

  • Thread starter Thread starter Andrew Kidd
  • Start date Start date
A

Andrew Kidd

Hi,

Sorry if this has been asked before, but I'm stumped.

I need to present a table of data on a web page, with the records presented
in a random order. My thinking is as follows:

1 - read the records into a data set
2 - add a new column to the data set
3 - iterate through the dataset, assigning a random numeric value to each
record
4 - sort the dataset by this random field
5 - bind the dataset to the table

Or have I just lost the plot?

Thanks in advance,

Andy
 
Hi Andrew,

Just do what you said and use the dataview for the sort.

If you need more information, please tell it?

Cor
 
Hi Cor,

Thanks for the reply - at least I'm on the right track. I didn't know if
there was some 'silver bullet' function that would be quicker, but I've
never been afraid of a bit of coding ;-)

Andrew
 
Back
Top