• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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