Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass ClientID in OnClientClick
Message
 
À
17/03/2008 12:08:06
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01301882
Message ID:
01302687
Vues:
23
>>>>>It doesn't like this line:
>>>>>
>>>>>
>>>>>ArrayList list = new ArrayList() { "One", "Two", "Three" };
>>>>>
>>>>>Do you know how can I fix it?
>>>>>
>>>>
>>>>What does the error message say?
>>>>
>>>>I'm going to guess you are missing:
>>>>
>>>>using System.Collections;
>>>>
>>>>Add that to the top of the .cs file.
>>>
>>>I think the problem is that she is using an ArrayList instead of an Array. AFAIK, you can't add items to an ArrayList like she is trying.
>>
>>Sure you can. It works on my machine <g>
>>
>>Actually, she's probably running the 1.1 version of the .NET framework. 2.0 and later that syntax works.
>
>Must be a C# thing then? It's not working for me in VB.

Hmm...must be.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform