Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 16, 2023 14:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
@using TXTextControl.Web.MVC
@Html.TXTextControl().TextControl().Render()
<input type="button" onclick="loadDocument()" value="Generate Document" />
@section Scripts {
<script>
function loadDocument() {
$.get('@Url.Action("LoadDocument")', function (data) {
TXTextControl.loadDocument(TXTextControl.StreamType.InternalUnicodeFormat, data);
});
}
</script>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment