Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: storing and retrieving values from a hashtable stored in a session Pin
Member 340288630-Jun-08 23:51
Member 340288630-Jun-08 23:51 
AnswerRe: storing and retrieving values from a hashtable stored in a session Pin
Simon P Stevens30-Jun-08 3:22
Simon P Stevens30-Jun-08 3:22 
QuestionDisplay Images of different Sizes in ListView Pin
Pallavikris230-Jun-08 2:16
Pallavikris230-Jun-08 2:16 
QuestionHow to find the right item in listView control ? Pin
Yanshof30-Jun-08 2:14
Yanshof30-Jun-08 2:14 
QuestionAdding SQLCE to Distribution App Pin
Jammer30-Jun-08 1:59
Jammer30-Jun-08 1:59 
AnswerRe: Adding SQLCE to Distribution App Pin
Jammer30-Jun-08 9:20
Jammer30-Jun-08 9:20 
Questionresolving a distribution list in order to send emails Pin
randprin30-Jun-08 1:54
randprin30-Jun-08 1:54 
QuestionArrayList - multi-dimensional and Dynamic Pin
Member 340288630-Jun-08 1:24
Member 340288630-Jun-08 1:24 
Hi
I am very new to C# programming (classic asp trained) so please bear with me if I'm being stupid!

All I want to do is declare a 2 dim array but it will be dynamic as I don't know what the size will be. I have been searching the web and it looks like I should be using ArrayList(). However, I cannot find any examples as to how I declare it - it doesn't like the first line in my code as it's looking for a size:

e.g
ArrayList itemsArray = new ArrayList[,];
itemsArray[0,0].Add(TextBox1.Text);
itemsArray[0,1].Add(TextBox2.Text);
Response.Write(itemsArray[0,0]);
Response.Write(itemsArray[0,1]);

Please help as I've been spending hours looking for an answer and about to change career!
AnswerRe: ArrayList - multi-dimensional and Dynamic Pin
DaveyM6930-Jun-08 1:36
professionalDaveyM6930-Jun-08 1:36 
GeneralRe: ArrayList - multi-dimensional and Dynamic Pin
Member 340288630-Jun-08 2:33
Member 340288630-Jun-08 2:33 
GeneralRe: ArrayList - multi-dimensional and Dynamic Pin
DaveyM6930-Jun-08 2:48
professionalDaveyM6930-Jun-08 2:48 
AnswerRe: ArrayList - multi-dimensional and Dynamic [modified] Pin
GuyThiebaut30-Jun-08 5:40
professionalGuyThiebaut30-Jun-08 5:40 
Questionavoid duplicates in list Pin
cst_kvp30-Jun-08 1:23
cst_kvp30-Jun-08 1:23 
AnswerRe: avoid duplicates in list Pin
DaveyM6930-Jun-08 1:34
professionalDaveyM6930-Jun-08 1:34 
GeneralRe: avoid duplicates in list Pin
cst_kvp30-Jun-08 1:37
cst_kvp30-Jun-08 1:37 
GeneralRe: avoid duplicates in list Pin
Mbah Dhaim30-Jun-08 1:47
Mbah Dhaim30-Jun-08 1:47 
GeneralRe: avoid duplicates in list Pin
DaveyM6930-Jun-08 2:00
professionalDaveyM6930-Jun-08 2:00 
AnswerRe: avoid duplicates in list Pin
Giorgi Dalakishvili30-Jun-08 4:08
mentorGiorgi Dalakishvili30-Jun-08 4:08 
AnswerRe: avoid duplicates in list Pin
Kevin McFarlane30-Jun-08 5:02
Kevin McFarlane30-Jun-08 5:02 
Questionc# point of sale Pin
lankaudaranga30-Jun-08 0:56
lankaudaranga30-Jun-08 0:56 
AnswerRe: c# point of sale PinPopular
Vimalsoft(Pty) Ltd30-Jun-08 1:05
professionalVimalsoft(Pty) Ltd30-Jun-08 1:05 
AnswerRe: c# point of sale PinPopular
Harvey Saayman30-Jun-08 2:19
Harvey Saayman30-Jun-08 2:19 
RantRe: c# point of sale PinPopular
Harvey Saayman30-Jun-08 2:43
Harvey Saayman30-Jun-08 2:43 
QuestionHow can I open a hyperlink in a link click from my form in C#.net [modified] Pin
Anu Palavila30-Jun-08 0:47
Anu Palavila30-Jun-08 0:47 
AnswerRe: How can I open a hyperlink in a link click from my web form Pin
Vimalsoft(Pty) Ltd30-Jun-08 1:08
professionalVimalsoft(Pty) Ltd30-Jun-08 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.