I am trying to store the cookie in an array of string and splitting it .when i try to display the array i am getting index out of bound error in the for loop.
Please not the the value of "cboColumn.getSelectedValues()
" is a list of selected columns from a grid which is in format"column1,column2,column3......columnn
"
Response.Cookies["Column"].Value = cboColumn.getSelectedValues();
String items = Request.Cookies["Column"].Value;
String[] item = items.Split(',');
Response.Write(items);
Response.Write(item[0]);
for (int i = 0; i <= item.Length; i++)
{
Response.Write(item[i]);
}