Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Elusive DataSet
Message
 
 
À
30/04/2008 04:09:38
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01314012
Message ID:
01314174
Vues:
22
>>>>Do you know where can I find why I don't have SiteID in the DataSet? Is there any other file in addition to the ASPX/ASPX.cs I have to re-check?
>>>>
>>>>Thanks in advance.
>>>_________
>>>
>>>The help file says that Columns is a collection
>>>
>>>see: http://msdn.microsoft.com/en-us/library/system.data.datacolumncollection.contains(VS.71).aspx
>>
>>True. But why do you mention this?
>>Regards,
>>Viv
>
>Ok, misinterpreted the question. I had read 'do you know how I can know whether SiteId is in the dataset'

Yes, I was also thinking why did you tell me this?

Ok, as a bonus question for you - what is the property that tells me if my DataSet table has Rows? Yesterday I just added an extra check before this code to for this column <> null (I guess it's an akward workaround, but it worked), but I also found that if my query didn't return records (and, BTW, after the query the SiteID is indeed in the columns of the table of the Dataset) the Excel still was trying to create an empty file and obviously I don't want it.
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