A
Adam J Knight
Hi all,
I am getting the following error with this if statement..
if(e.Item.DataItem["QuestionType"] != 2)
{
}
//error
Cannot apply indexing with [] to an expression of type 'object'
Can someone fill me in on what is happening?
Error occurs in a datalist's ItemBound events. The datasource is a
dataset..
Cheers,
Adam
I am getting the following error with this if statement..
if(e.Item.DataItem["QuestionType"] != 2)
{
}
//error
Cannot apply indexing with [] to an expression of type 'object'
Can someone fill me in on what is happening?
Error occurs in a datalist's ItemBound events. The datasource is a
dataset..
Cheers,
Adam