ASP.NET in VS IDE gives "Expression cannot be evaluated at this time."
- by S Nash
I read all of similar questions in SO but none seem to be an answer.
Situation is simple. I have a ASP.NET webpage,
In a VB code behind file I have the following line:
iRendProvider = ddlProvider.SelectedItem.Value
where iRendProvider is integer and ddlProvider is a dropdownlist.
I put a breakpoint at the above line and code stops there.
Now in the immdediate window in I type:
? ddlProvider.SelectedItem.Value
I get "Expression cannot be evaluated at this time."
If I step over
iRendProvider = ddlProvider.SelectedItem.Value
To the next line and I type ? iRendProvider , I see the correct value in the immediate window.
Question is why this error and how to see contents of ddlProvider.