CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 listbox and making form visible

Print topic Send  topic

Author Message
Geny
Posted: 04/20/2005, 7:19 AM

Hi,

i have a listbox filled with 'listOfValues' and depending of the item choose in it, i want the corresponding form to that choice to become visible.

My listbox have 8 values and i have 8 record form not visible on my page. I have some text boxes to fill over this listbox so i don't want to lose the data put in them when i change value with my listbox...

Do you have any idea where do i need to put some code? On the on change event of the listbox?

Thanks ;)
Nicole

Posts: 586
Posted: 04/21/2005, 2:19 AM

Geny,
You can reload a page after selection is made from a listbox. Then in grid before show event check passed listbox value and show/hide grid depending on it.
In order to preserve previously selected/entered values when page is reloading you need to pass these values via url as it is done for the listbox value to preserve parameters, e.g.:
  
window.location.href = "Page_name.asp?listbox1=" + this.value + "&user_name=" + document.form_name.user_name_field.value;  

_________________
Regards,
Nicole
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.