Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > object instances when querying strings

Thread Tools

object instances when querying strings

Posts: n/a
Hi all,

I get: Object reference not set to an instance of an object

when trying tomdo the following:

sEvent = Request.QueryString["EventId"];

if (sEvent.Length == 0)


Which instance, and how is it to be created. I just want to test when the

is being passed with a value.

Thanks in advance,


Reply With Quote
Gabriel Magaņa
Posts: n/a
sEvent = Request.QueryString["EventId"] == null ? "" :

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dicts,instances,containers, slotted instances, et cetera. Python 8 01-29-2009 09:52 AM
How to best extract Ruby strings from REXML::Text instances? Kenneth McDonald Ruby 1 08-27-2007 02:52 PM
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
list of class instances within a list of a class instances John Wohlbier Python 2 02-22-2004 08:41 AM