Bug in ResourcesExpressionBuilder


In the current version, GetCodeExpression returns null, or it can't.
Like we can read in MSDN:
'The right side of the declarative expression is passed to the expression builder for evaluation. Override the GetCodeExpression method to generate code that will be compiled with the page.'
We have created a dedicated method that parses the element, GetResources(). It's called through EvaluateExpression() (called in not compiled only) and invoke in GetCodeExpression() (called in each case: compiled and not).
The class could be like the attached file.
Kind regards.

file attachments


rcomte wrote Jul 1, 2008 at 4:00 PM

Adding to the previous comment, we found that the current solution could work if we use not compiled page only.
But in most of cases we have to work with compiled pages.

wrote Feb 12, 2013 at 11:48 PM