Posted on 11/03/2014 11:57:45
Thank you Imar, that worked!
Last question, if you got the time. I am trying to define a Generic Dictionary in razor, but it seems, that due to dynamicweb's parser, the type definitions are being treated as html object/attributes.
var keyValues = new Dictionary<string, string>();
returns this nasty bugger:
Line 3: Syntax error, '>' expected
Line 3: Invalid expression term ')'
Line 3: ) expected
Probably due to the following, found a little later in the code
var keyValues = new Dictionary<string, string="">();
Notice how the <string, string> is being treated as a html object.
How to overcome this, so i can define my Dictionary in the razor view?