Hiding/Showing controls w/ VBScript during Page Load.

M

MN

Greetings to all -

I'm having some fits with getting this to work but I'm near the end and I'm
hoping this one obstacle is not a huge one to get past.

Here's my scenario:

I have a page where when someone clicks on a dropdown and selects an item,
it will hide 2 other dropdown boxes that are related as the input in those
are applicable. When I save those items, everything gets into the db fine.
The problem is when the page refreshes, those 2 related dropdown boxes that
should be not visible are still visible. Is there a way in VBScript to
hide/show those controls based on the data in dropdown A? Javascript is
handling the actions but I don't think I can call Javascript on page load.

Any thoughts are welcome. I'm quite confused on any other options.

Thanks,
MN
 
C

Curt_C [MVP]

You will have to have a catch on the page (hidden form item perhaps) and read
that in when the page POSTs back, and then use that value to determine if you
hide/show 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

No members online now.

Forum statistics

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

Latest Threads

Top