|
-
October 23rd, 2002, 11:59 AM
#1
null object
How can I validate the object before accessing it? The IsNull is not available under asp .net version.
I try to see if the treenode exist in the treeview or not.
Here is my code:
dim userNode as TreeNode = TreeViewInbound.GetNodeFromIndex (strUser)
Thanks for the information
-
October 23rd, 2002, 12:35 PM
#2
Damm,
I got it!!!. It suppose to be
if (treeNode is Nothing) then
...
end if
instead of
if (treeNode = Nothing) then
...
end if
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|