InquisitiveKitty
Topic Starter
my code is as follows
If Not Request.Cookies("albumdisplay") Is Nothing Then
Sqltracks.SelectCommand = "SELECT [Track_number], [Track_name], [albumn_name], [Time_secs], [cost], [sample_wma] FROM [Tracks], [Albums], [Prices] WHERE tracks.ReleaseID = albums.ReleaseID and tracks.price_type = prices.pricestype AND albumn_name ='" & Request.Cookies("albumsdisplay").Value & "'"
gvtracks.Visible = True
Else
gvtracks.Visible = False
End If
but i get the error "NullReferenceException was unhandled by user" "Object reference not set to an instance of an object."
and i have no idea how to fix this