Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2005, 07:22 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default form field to scroll numbers up and down

How do I create a form field that will allow the user to scroll through numbers 0 to 99 with have to create a list of dropdown list? I want a control that looks like the one, for example, we see in the Windows Print dialog with most software where we chose the number of copies to print.

Thanks

___________________
Guy L. Levert
www.elearningstyles.com
__________________
___________________
Guy L. Levert
www.elearningstyles.com
 
Old October 31st, 2005, 11:43 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

See the following URL to understand what I am trying to do:

http://www.elearningstyles.com/hocke...awksstats.aspx



___________________
Guy L. Levert
www.elearningstyles.com
 
Old November 1st, 2005, 01:37 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

If you do a view sorce of the page you will see that it is an HTML dropdownlist. And is populated manually:
<select name="playernumber1" size="4" id="playernumber1" style="height:30px;">
    <option value="0">0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>

</select>

 
Old November 1st, 2005, 05:01 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

Yes. Thanks for your reply Mr. Benson.
However, in ASP.NET I am using a ListBox control. I would like to know if there is an easier way to do this. What I want to implement is a score keeping tool - like they have for golfing - where at each click it adds one to the score. In this example, at each up arrow, it adds 1 to my number and down arrow it substracts 1. I am guessing that it does not exist natively in ASP.NET (VB).



___________________
Guy L. Levert
www.elearningstyles.com
 
Old November 2nd, 2005, 01:55 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You are correct, it does not exist natively in ASP.NET. YOu would have to code it to behave this way.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to grey out a form field? kk_sg Access 4 April 29th, 2008 10:11 AM
form field problem hastikeyvan Classic ASP Professional 12 September 3rd, 2006 08:45 AM
Bring a field to a form! Vision G Access 11 June 9th, 2006 08:37 AM
Requery a Form Field from another Form rocknrisk Access 3 September 16th, 2005 03:51 PM
Parameter Field Form narooma.12 Crystal Reports 0 August 27th, 2004 01:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.