You may store it in a cookie, in a database, in a text file, in viewstate,
or in a session variable. Which is the best would depend on the information
being stored.
But if he posts back... It's no longer just client side is it? So what's the
point of limiting it to client side then? I'm just trying to understand why
not use a "server side solution". Of course if the variable needs to be
accessed again client-side then you're right, a hidden field or a cookie is
about the only choice. (Unless you get into Ajax).
to store my javascript variable in viewstate, i had to use an html hidden
textbox which i converted to run at server and that seem to have work well,
thanks.
rodchar
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.