Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex problem with binding, UserControl & null
Message
De
11/08/2008 10:28:34
 
 
À
11/08/2008 10:25:42
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01336725
Message ID:
01338031
Vues:
10
It was crashing right here in ASPX file

DefaultPicture = '< %# Bind("DefaultPicture") % >' so the only solution I could have think of and implemented was to convert my data in SQL Server to avoid getting NULLs. Since here we're not using Data Access classes (huge mistake), that seems to be the only solution.

>I'm not sure which line it's crashing on, but all you need to do is have a check to see if it's == DBNull.Value and do something else with it when it is.
>
>~~Bonnie
>
>
>
>
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform