By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,867 Members | 1,964 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,867 IT Pros & Developers. It's quick & easy.

populate dropdown list

P: 2
Hi,can anyone help me?

I want to refresh 1 textbox value based on selected data in dropdown list.

both of them are from different tables.

Table A(dropdown list)
ID Name
123 abc

Table B(text box)
ID expenses
123 RM456

when i select the ID from dropdown list(Table A),I want the RM456 display in textbox.

can anyone have any suggestion?

best regards,
Dec 1 '11 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 3,405
in order to do this seamlessly, you will need to use some javascript or ajax. Remember that asp runs on the server, not the browser, so when the user makes a selection there is no obvious way for the server to know and execute any code. Does this suggest anything to you?

Dec 2 '11 #2

P: 2
Hi Jared,

thank you for your suggestion. I tried with xmlhttprequest to call another page. However, the 2nd pages failed to get the value that user's selection in 1st page.

do i use wrongly?

bee kien
Dec 5 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.