This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I have been trying to come up with a method that renders out a view and then converts it into a string, this is so I can send emails using the views and use razor to populate the page before sending.
My code is - http://pastebin.com/MWzkshxv
When I compile and this code gets ran, I get the following error on line 18 in the pastebin. The view at '~/Views/Email/Ticket.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
I have googled it, and researched it but nothing I find can fix this. I have tried doing the @inherit on the page but apparently you can't have @model and @inherit on the same page.
Post Details
- Posted
- 9 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/csharp/comm...