Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Empty or Null
Message
 
 
À
19/03/2008 15:09:54
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01303548
Message ID:
01303567
Vues:
16
>Why not set a breakpoint preceeded with
>
>// if in vs2005 replace var by bool
>
>var selnull = this.lsbUsers.SelectedItem != null;
>var textempty = this.lsbUsers.Text != string.Empty;
>var lsbrolesnull = is.LsbRoles.SelectedValue != null;
>
>// put the break here
>// examine the 3 variables
>
>// your if( statement follows
>if ((this ....
>
>
Thanks, I'm going to try it this way. My gut it telling me that the problem is that the string is empty and not null.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform