Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ArrayList Not Working

Reply
Thread Tools

ArrayList Not Working

 
 
Chuck Insight
Guest
Posts: n/a
 
      02-16-2005
I'm very new to ASP.Net programing, so I hope I can explain my situation adequately. Please Help.
Compiler Error Message:
Overload resolution failed because no accessible 'Write' can be called with these arguments:

Code snippits within Try.aspx:
<%@ Page Language="VB" Explicit="True" Debug="true" %>

<script runat="server">
Public Universe as Arraylist = New ArrayList()
Public Temp = (int(rnd * 4 + 1), I, U, X as Integer
Public Fill as String

Public sub Populate()
for U = 1 to 10
U = Temp.ToString = Fill
Universe.Add(Fill)
next U
End sub
</Script>

<html><Body>
<%Response.Write(Universe())%> Universe<BR>bb
</Body></html>

Please answer two questions:
1 - Is this the correct way to populate this arraylist?
2 - Since this is failing, how should I retrieve the arraylist values?

Thanks very much,
Chuck
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear Arraylist vs new ArrayList Philipp Java 6 05-28-2008 09:07 PM
Does the clone() method of ArrayList<> make a copy of the objects in the ArrayList? xz Java 16 08-04-2007 10:33 PM
a class inherited from ArrayList, is saved to ViewState, why the type of the object read from ViewSate is not the class, but the parent, ArrayList leal ting ASP .Net 1 02-10-2004 07:45 PM
writeObject with ArrayList of ArrayList? Kaidi Java 4 01-03-2004 08:16 PM
Iterate through ArrayList using an another ArrayList Saravanan Rathinavelu ASP .Net 3 08-19-2003 07:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57