This is a read-only archive. No new posts or registrations. Privacy Page
Software

aussie lass in deep denial about programing website

1 min read

This thread's last reply is from . Advice, software, and links below may be out of date — treat specific steps and download links with caution.

Looking for the outcome? Ask AI

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
Hello Kitty,

Looking at your code:
If Not Request.Cookies("albumdisplay") Is Nothing Then

…AND albumn_name ='" & Request.Cookies("albumsdisplay").Value & "'"

It looks like you are referencing two different cookie values ("albumdisplay" and "albumsdisplay")

Hope this helps,

Ax

Ask AI

AI can make mistakes. Check the cited posts. Archived advice can be out-of-date

Don't include personal information. Questions and selected public posts go to OpenAI. About Ask AI