if i dont initialize array size it will not work and i will be not knowing how much size i have to initialize
how to store values in string array
is my syntax below is correct
{
// Put user code to initialize the page here
int i=0;i=10;
string[] strarr;if(i==10)Code
{
strarr="firstvalue;
}
i=20;Code
{
strarr="secondvalue";
}
i=30;Code
{
strarr="thirdvalue";
}
i=40;Code
{
strarr="fourth value";
}Code
{
Response.Write(str+"
");
}
}
so finally my code should display
firstvalue
secondvalue
thirdvalue
fourthvalue
Edward2 pointsPosted May 24, 2007, 11:16 PM EDT
It seems unclear to me. Could you put your error code snippet?
Oscar Rivera21 pointsPosted May 25, 2007, 11:01 AM EDT
check this page: http://msdn2.microsoft.com/en-us/library/6sh2ey19.aspx