Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming blanks from a Parameter
Message
De
23/06/2010 14:07:08
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01470305
Message ID:
01470334
Vues:
38
>>
>>thanks, but no, clientType is never null.
>
>Assuming clientType isn't null, something else in that code is failing (probably because of a null).

Thanks again (and Mike too).

In the meantime I had changed the code to this:
        private void SetClientTypeDisplay(string clientType)
        {
            this.pnlCompany.Visible = (clientType.Trim() == "Company");
and that works, so I guess I'll never work out what the problem was (unless I get a chance to put it back to the original and step through it).
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform