Hidden input not available at prerender?

U

UJ

I have an aspx page that does some database look ups on the initial load. I
then need to do stuff later after an autopostback based on some of the
values. So I put some variables in input variables of type hidden. Problem
is on the reload-prerender the variables are not filled in yet.

Is the best solution session variables?

TIA.
 
K

Kevin Spencer

So I put some variables in input variables of type hidden

I am going to guess that your problem lies here. However, what the problem
is, I don't know, as you didn't specify what you meant by what you said.
Here's the thing: Terminology exists for the purpose of communication.
Terminology is an extension of a given language (in this case English), in
which new inventions are given new names so that everyone that is familiar
with the new names will know what is being talked about. That is why correct
terminology is important. Now, there is no such terminology as "input
variables of type hidden." Therefore, you are using self-invented
terminology that nobody can understand. For example, if you were to say "I
wrote some variable values into some HTML that creates an 'input
type=hidden' HTML form element" we would know what you meant. But, by the
same token, your statement could be interpreted as meaning "I inserted some
variable values into the value property of an HtmlInputHidden Control." Or
it could mean that "I inserted some variable values into the Attributes
Collection of an HtmlInputHidden Control as part of a string."

So, could you clarify what you meant by what you said, please?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 

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.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top