I keep getting the error ExecuteReader: CommandText property has not been initialized and i’m not sure why it points to this line in my code
dd1.DataSource = LogData.StermQ2(datelistquery).Tables(0).DefaultView
dd1.DataBind()
dd1.Items.Insert(0, new listitem("Any location", "%"))
The top line is the one with the error
Any help would be much appreciated
Thanks
Jamie
The weird thing with it is that it only happened occasionally and if i emptied my cache it would work fine.
So I just disable caching on that page and it seems to be working (at the moment)
Also added in some Try Catch statements and seems to be ok
Thanks for the help though
Jamie