Answers to your tech questions
Computer forums for help with removing malicious software (malware) and improving computer security

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)

      
 
Reply to this topicStart new topic
> aussie lass in deep denial about programing website, I NEED HELP with asp.net if you can provide it
InquisitiveKitty
post 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



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
Go to the top of the page
 
+Quote Post
Ax238
post Sep 14 2007, 10:10 PM
Post #2


ASCII and ye shall receive.
Group Icon

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!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts  
8 pjm 1,973 6th August 2008 - 02:38 PM
Last post by: redtech
No New Posts  
0 Michael35 57 5th August 2008 - 08:38 AM
Last post by: Michael35
No New Posts  
0 dnolen01 266 24th May 2008 - 08:56 AM
Last post by: dnolen01
No New Posts
0 AplusWebMaster 270 9th May 2008 - 06:34 PM
Last post by: AplusWebMaster
No New Posts  
2 at133 443 28th April 2008 - 05:07 PM
Last post by: Rorschach112

RSS Time is now: 21st August 2008 - 02:53 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy