-
Notifications
You must be signed in to change notification settings - Fork 580
pass url into the razor view #362
Description
Hi -
I am trying to use this tool to generate body of an email which is a razor view. The view expects a url to be passed in which looks like: http://localhost:1982/#/login/
I store that url in my model.
in my razor view, I reference it in this manner:
<a href="@Model.LoginURL"><u>Home Page</u></a>
for some reason the RunCompile funtion dies stating the following error.
- error: (31, 13) The name 'BeginWriteAttribute' does not exist in the current context
- error: (4, 1) The name 'WriteAttributeValue' does not exist in the current context
- error: (37, 13) The name 'EndWriteAttribute' does not exist in the current context
The RunCompile function works fine if I hard code the same url inside the razor view but that is not the requirement.
<a href="http://localhost:1982/#/login/"><u>Home Page</u></a>
Any insight in this is much appreciated.
Thanks