Hi I am a beginner to asp.net.
Could any one please help me ...
I have a database table with two colums ( column one has all the countries and column two has all the capitols of that particular country.)

In my .aspx page I have a dropdown list and a text box.
Drop downlist will display all the countries and if I select a country then its capitol should be displayed in the textbox, without posting back to the server

Thanks in Advance...
Your help is much appreciated....

you can do it with javascript "onchange" event of the dropdown which returns false(does not cause postback).

All you need to have a function in javascript which binds the value of the dropdown to textbox.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.