Of course the "correct" way to do this, is install a number of javascript packages, some NPM, grunt, gulp and 30+ other incompatible things that you don't need.
;-) Davy *... .. / .... --- -.-. / .-.. . --. . .-. . / ... -.-. .. ... / -. .. -- .. ..- -- / . .-. ..- -.. .. - .. --- -. .. ... / .... .- -... . ... .-.-.-* On Mon, Jan 23, 2017 at 6:11 AM, Greg Keogh <gfke...@gmail.com> wrote: > . hooking into the form submit event (javascript) and appending any number >> of hidden input fields... >> > > That's not quite what I'm doing, but I think I've cracked it anyway. I > tried various asp.net controls to hold the client-side value, Label, > TextBox and HiddenField, with different properties like innerHTML, value, > etc. The correct combination is this: > > JS > var ctl = document.getElementById("hiddenIdCtl"); > ctl.value = id; // The value the script extracted > > C# > string id = hiddenCtl.Value; > > Only this combination works -- *Greg* >