Welcome Guest to What the Tech! ( Log In | Register ) We specialize in the removal of malicious software (malware), but here you'll find free help and support for all your tech questions. We invite you to ask questions, share experiences, and learn. Explore our message boards, or register now to post messages of your own. Please Start Here. Register today (registration removes advertising)
![]() ![]() |
Sep 3 2006, 04:57 AM
Post
#1
|
|
|
New Member ![]() Group: New Member Posts: 5 Joined: 31-July 05 Member No.: 37,364 Operating System: Windows xp home edition |
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 |
|
|
|
Sep 14 2007, 10:10 PM
Post
#2
|
|
![]() ASCII and ye shall receive. Group: Tech Team Posts: 717 Joined: 9-November 06 From: Somewhere out there Member No.: 64,025 Operating System: XP Pro SP2 |
Hello Kitty,
Looking at your code: CODE If Not Request.Cookies("albumdisplay") Is Nothing Then CODE ...AND albumn_name ='" & Request.Cookies("albumsdisplay").Value & "'" It looks like you are referencing two different cookie values ("albumdisplay" and "albumsdisplay") Hope this helps, Ax This post has been edited by Ax238: Sep 14 2007, 10:13 PM
Reason for edit: I just realized the date was from 2006, not 2007...oops!
|
|
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
8 | pjm | 1,973 | 6th August 2008 - 02:38 PM Last post by: redtech |
|||
![]() |
0 | Michael35 | 57 | 5th August 2008 - 08:38 AM Last post by: Michael35 |
|||
![]() |
0 | dnolen01 | 266 | 24th May 2008 - 08:56 AM Last post by: dnolen01 |
|||
![]() |
0 | AplusWebMaster | 270 | 9th May 2008 - 06:34 PM Last post by: AplusWebMaster |
|||
![]() |
2 | at133 | 443 | 28th April 2008 - 05:07 PM Last post by: Rorschach112 |
|||
|
Time is now: 21st August 2008 - 02:53 PM |