Solved

asp.net/c# ascx

Posted on 2011-09-20
6
225 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
  • 2
  • 2
  • 2
6 Comments
 
LVL 29

Expert Comment

by:anarki_jimbel
Comment Utility
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
Comment Utility
No. it is not. They shown two dropdown. and I only need one.
0
 
LVL 15

Expert Comment

by:Eyal
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

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

Expert Comment

by:anarki_jimbel
Comment Utility
"... 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 500 total points
Comment Utility
Sorry, apparently I don't understand your question\needs.
please, give example or refine your request
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now