Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass ClientID in OnClientClick
Message
 
To
17/03/2008 12:08:06
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01301882
Message ID:
01302687
Views:
22
>>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform