String.IsNullOrEmpty in asp.net vb,net question

this is what im trying to do:

If Not String.IsNullOrEmpty(Name) OrElse Not String.IsNullOrEmpty(Email) Then

End if

But on the second one -----------> String.IsNullOrEmpty(Email)

I get an error:

500 Internal Server ErrorObject reference not set to an instance of an object.

why is that,

Thanks guys
Tony TrappWeb and Mobile application develperAsked:
Who is Participating?
 
Tony TrappConnect With a Mentor Web and Mobile application develperAuthor Commented:
never mind guys i figured it out
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.