This project is read-only.

razorengine not recognizing @Code content

Jun 24, 2014 at 7:46 PM
First time using razor, basically using a wpf application and using the webbrowser inside it I am sending the file and the object into the razor.parse like this

strSource = RazorEngine.Razor.Parse(IO.File.ReadAllText("C:!BL\projects\WpfApplication1\WpfApplication1\AdminOrderNotification.vbhtml"), header)

Then Im opening the webbrowser.navigate to that source and it doesnt recognize the @Code statments.

It does however recognize the contents of the model, e.g @model.array(0)

What am I doing wrong?