Click to See Complete Forum and Search --> : select box onselect?


nmunro
January 30th, 2004, 05:19 AM
Hi all,

I'm very new to ASP programming and have been tasked with creating a basic page that retrieves information from one of our databases.

What I need is to be able to reload the page if the user selects an item in a select box. How is this accomplished? I assume I'm going to need some sort of javascript similar to a submit button?

The requirement is that a second select box has content that's dependable on the user's selection in another select box.

Is there any information repository that lists scripts and details the parameters they expect?

Any help is much appreciated!

Andy Tacker
January 30th, 2004, 05:25 AM
are you making making your app, using C# or VB.NET?

nmunro
January 30th, 2004, 05:40 AM
vb.net

Andy Tacker
January 30th, 2004, 07:58 AM
as a test,
you place a DropDownList in design mode.
use property sheet to add some text values to it.
then place a text box.

using IDE add Event Selected Index Changed to your DropDown List.
there simply set text box's text to selected text

textbox1.text = dropdownlist1.SelectedItem.Value;

that's how i do using C#. may be syntaxes will be a little different in VB. i am not sure.