• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

asp.net/c# ascx

I would like to create a dropdown with value from 1 to 25
<option value=1>1</option>
<option value=25>25</option>

and depend on the number, it will show a list of
City/State: <input name=city>&nbsp;<input name=state>

and both able to capture all value, and save into the sql database.

Is that possible?

Thanks.
0
Webboy2008
Asked:
Webboy2008
  • 2
  • 2
  • 2
1 Solution
 
anarki_jimbelCommented:
Have a look at this code, it seems it's what you are asking:

http://csharpdotnetfreak.blogspot.com/2009/03/populate-dropdown-based-selection-other.html

0
 
Webboy2008Author Commented:
No. it is not. They shown two dropdown. and I only need one.
0
 
EyalCommented:
in the drop down you have <option value="StateName\StateCountry">StateName\StateCountry</option>?

if so on dropdown selection take the value split it by '\' and assign the values to the inputs

did I understood what you need?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Webboy2008Author Commented:
read the question again. I said the textbox has
City/State: <input name=city>&nbsp;<input name=state>
0
 
anarki_jimbelCommented:
"... read the question again. I said the textbox has ..."

Experts here are volunteers I wouldn't be so rude to them....
0
 
EyalCommented:
Sorry, apparently I don't understand your question\needs.
please, give example or refine your request
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now