Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass ClientID in OnClientClick
Message
From
17/03/2008 11:59:39
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:
01302672
Views:
19
>>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.
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform