A
Andy Fish
Hi,
I want to generate a value with javascript and include it in the form
postback for a web form.
based on my previous web development experience, I think I need an <input
type=hidden> on the page. However, to fit in properly with the web forms
paradigm, I would like this to be a proper asp.net server side control
rather than just generating it in the HTML.
I have found I can do this OK with a text box as long as it's visible; if I
make the text box hidden it is no longer rendered in the HTML (and so i
can't set it from javascript). What's the best way to achieve what I'm
trying to do?
Andy
I want to generate a value with javascript and include it in the form
postback for a web form.
based on my previous web development experience, I think I need an <input
type=hidden> on the page. However, to fit in properly with the web forms
paradigm, I would like this to be a proper asp.net server side control
rather than just generating it in the HTML.
I have found I can do this OK with a text box as long as it's visible; if I
make the text box hidden it is no longer rendered in the HTML (and so i
can't set it from javascript). What's the best way to achieve what I'm
trying to do?
Andy