Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 5, 2015 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/a6d28aa6c0caba8f980f to your computer and use it in GitHub Desktop.
Save bjoerntx/a6d28aa6c0caba8f980f to your computer and use it in GitHub Desktop.
[HttpPost]
[AllowAnonymous]
public bool SaveTemplate(string document)
{
// these are the values coming from the HTTP Post action
// of the ASPX page
string doc = document;
// the document can now be saved in your Controller action
// ...
// return true, if successful
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment