I am doing the conversion from php chat application to asp.net chat application.
In php chat application work fine,
so i am converting now, the problem i am facing from php is, they used some array with session variable i dont know the correct equalent in Asp.net. this is the code
$_SESSION['openChatBoxes'][$chat['from']] = "from value";
in .net i tried:
DirectCast((Session("openChatBoxes")), ArrayList)(getIndexOf(DirectCast((Session("openChatBoxes")), ArrayList), "fromname")) = "messagecontent"
Its shows the error message for me as follows
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
Please help me. its very urgent
[Modified: added code formatting]