Wrox Home  
Search P2P Archive for: Go

  Return to Index  

interdev_programming thread: Beginner ASP


Message #1 by <Kafila.Patel@t...> on Wed, 18 Apr 2001 13:01:19 -0500
Use an ASP loop to create your drop down with the sequence:

<select name="optIncrementer">
<%For i=1 to 1000%>
	<option value="<%=i%>"><%=i%></option>
<%Next%>
</select>

Then some form buttons with a little javascript to change the values.

<input type="button" value="Click me to decrement"
onclick="this.form.optIncrementer.selectedIndex--">
<input type="button" value="Click me to increment"
onclick="this.form.optIncrementer.selectedIndex++">


HTH,
Peter

-----Original Message-----
From: Kafila.Patel@t... [mailto:Kafila.Patel@t...]
Sent: Wednesday, April 18, 2001 2:01 PM
To: Interdev_Programming
Subject: [interdev_programming] Beginner ASP


Hi All,

I need a drop down to increment value every time the user clicks...

For example, if the first value is 1, it increments to 2, 3, 4 etc...as
the user keeps clicking.

I need to do this for atleast a 1000 numbers.

Any help will be appreciated.

thanks.
kafila


  Return to Index