request.item = new Item[1]; Item item = new Item(); item.id = "0"; item.unitPrice = "29.95"; request.item[0] = item;I thought the following would work just fine but I keep getting the error message: 'Object reference not set to an instance of an object' when the last line of the following code block executes. It's apparent I don't understand arrays in VB/C# very well.
Me.oItem = New Item Me.oItem.id = CType(Session("liItemID"), String) Me.oItem.unitPrice = CType(Session("liItemAmount"), Decimal) Me.oItem.quantity = 1 'The code above works fine ... the error occurs when I try 'the following. Me.oRequest.item(0) = Me.oItemHelp please.