Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

asp.net/c# ascx

Posted on 2011-09-20
6
Medium Priority
?
267 Views
Last Modified: 2012-05-12
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
Comment
Question by:Webboy2008
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 36570446
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
 

Author Comment

by:Webboy2008
ID: 36570725
No. it is not. They shown two dropdown. and I only need one.
0
 
LVL 15

Expert Comment

by:Eyal
ID: 36572750
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Webboy2008
ID: 36574389
read the question again. I said the textbox has
City/State: <input name=city>&nbsp;<input name=state>
0
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 36577504
"... read the question again. I said the textbox has ..."

Experts here are volunteers I wouldn't be so rude to them....
0
 
LVL 15

Accepted Solution

by:
Eyal earned 2000 total points
ID: 36578200
Sorry, apparently I don't understand your question\needs.
please, give example or refine your request
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question