Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
MVC View To String - Help
Post Body

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.

Author
Account Strength
90%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,721
Link Karma
2,348
Comment Karma
2,373
Profile updated: 3 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago