Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 30, 2015 20:18
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/04a7bbcc2d8d145790df to your computer and use it in GitHub Desktop.
Save bjoerntx/04a7bbcc2d8d145790df to your computer and use it in GitHub Desktop.
[HttpPost]
public bool SaveTemplate(string documentName, string document)
{
// these are the values coming from the HTTP Post action
// of the ASPX page
string docName = documentName;
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