Groups | Blog | Home
all groups > vb.net > march 2004 >

vb.net : Newbie to VB.Net & ADO.Net...


Andrew Kidd
3/16/2004 11:31:02 PM
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

Cor
3/17/2004 11:02:31 AM
Hi Andrew,

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

If you need more information, please tell it?

Cor
[quoted text, click to view]

Andrew Kidd
3/18/2004 12:17:45 AM
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


[quoted text, click to view]

AddThis Social Bookmark Button