MobyDog
10/18/2023, 10:24 AMcs
return JavaScript(String.Format("$(\"input[name='Crypt']\").val(\"{0}\");$('input#sagepay-button').show();$('p#sagepay-message').show(); $('#SagePayForm').submit();", Crypt));
Tried this in U10:
cs
string javascriptCode = String.Format("$(\"input[name='Crypt']\").val(\"{0}\");$('input#sagepay-button').show();$('p#sagepay-message').show(); $('#SagePayForm').submit();", Crypt);
return Content(javascriptCode, "application/javascript");
But it just shows the JS code on the screen. return CurrentUmbracoPage
does not allow parameters. How would I do this?