S
Sparky Arbuckle
The SQL I am using is supposed to grab only 6 titles from the database
and randomly display them on the default page. When I add more titles
to the database the initial 6 turns into 7,8,9 - 14 titles. Any
pointers. The SQL I am using is below:
Dim strSQL as string = "SELECT TOP 6 ASIN, strTitle, strArtist,
strReview, strImageDir " & _
"FROM tblDescription " & _
"ORDER BY SIN(tblDescription.decPrice * " &
rnd() & ");"
Dim objDataReader as OLEDBDataReader
objConn.Open()
Dim objCommand as new OLEDBCommand(strSQL,objConn)
dlMusic.DataSource =
objCommand.ExecuteReader(CommandBehavior.CloseConnection)
dlMusic.DataBind()
dlMusic.RepeatColumns = 2
and randomly display them on the default page. When I add more titles
to the database the initial 6 turns into 7,8,9 - 14 titles. Any
pointers. The SQL I am using is below:
Dim strSQL as string = "SELECT TOP 6 ASIN, strTitle, strArtist,
strReview, strImageDir " & _
"FROM tblDescription " & _
"ORDER BY SIN(tblDescription.decPrice * " &
rnd() & ");"
Dim objDataReader as OLEDBDataReader
objConn.Open()
Dim objCommand as new OLEDBCommand(strSQL,objConn)
dlMusic.DataSource =
objCommand.ExecuteReader(CommandBehavior.CloseConnection)
dlMusic.DataBind()
dlMusic.RepeatColumns = 2