ASP.NET in VS IDE gives "Expression cannot be evaluated at this time."

Posted by S Nash on Stack Overflow See other posts from Stack Overflow or by S Nash
Published on 2013-06-24T16:02:47Z Indexed on 2013/06/24 16:21 UTC
Read the original article Hit count: 213

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET