N
nalbayo
See code...please
ListItem[] MakeNumber()
{
ListItem[] items = new ListItem[50];
for (int i = 0; i < 50; i++)
{
items.Text = i.ToString();
}
return items;
}
Error message is here
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
What's the problem??
ListItem[] MakeNumber()
{
ListItem[] items = new ListItem[50];
for (int i = 0; i < 50; i++)
{
items.Text = i.ToString();
}
return items;
}
Error message is here
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
What's the problem??