NoCoolHandle
Programmer
Hi,
I was in the process of transfering a site we manage to a new hosting provider and started getting a non descript security error - the hosting company believes it is because they work in a medium trust environment.
(the code in question was written by someone else and i am just getting the pleasure of troubleshooting it..)
After doing much digging I found the error was being triggered by a call in a datalist's itemdatabound event.
Specifically where it was trying to read the value from a control in the datalist.
Any idea as to get around this is very welcome!
TIA
Rob
I was in the process of transfering a site we manage to a new hosting provider and started getting a non descript security error - the hosting company believes it is because they work in a medium trust environment.
(the code in question was written by someone else and i am just getting the pleasure of troubleshooting it..)
After doing much digging I found the error was being triggered by a call in a datalist's itemdatabound event.
Specifically where it was trying to read the value from a control in the datalist.
Code:
Dim lngDateType As Long = e.Item.DataItem("dateType")
Any idea as to get around this is very welcome!
TIA
Rob