Author: MSUTech | Posted on: 7/23/2008 1:01:57 PM | Views : 269

Due to my previous post having too much code.. I am reposting this...

MY PROBLEM: I have created a protected string[] Array in my aspx.cs file, then within Page_Load I have populated the array, then within my aspx file I try to reference a value from the array and I get the following error:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

THOUGHT: Should my 'new string[45]' code be outside of Page_Load?

 

MY CODE:

myfile.aspx 

<% =strArraylistofexpertise[12] %>

Go to the complete details ...