Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: ASP VBscript public sub help
01-28-2007, 09:44 PM #1
ASP VBscript public sub help
Hey all i need a way for the user, when they choose a store from a cbobox to populate another cbobox depending on what the user choose in the first cbobox.
I cant seem to execute a public sub once i put the onchange="" on the first cbobox.
<select name="cboSelect" class="FieldStyleDropDown" id="cboSelect" onchange="FillBox"> <option value=" "> </option> <option value="GP">Gunbarrel Point</option> </select>Code:
<% Public Sub FillBox() blah blah blah... %>
01-29-2007, 01:43 PM #2
- Join Date
- Jun 2002
- London, UK
- Thanked 110 Times in 109 Posts
onchange is a client-side event handler; fired by the browser. Anything in <% %> tags is server-side code, that runs at the server. If you're not sure about the distinction between those, I'd recommend that you go through some basic ASP tutorials. Once you've done that, you could try searching this forum for terms like "change", "second" and "dropdown" - you'll find several threads that go into the problem you're having in great detail.
01-30-2007, 02:56 PM #3
- Join Date
- Nov 2002
- North-East, UK
- Thanked 0 Times in 0 Posts
There are several threads here with different methods for dropdowns