in a form i have created 2 textboxes and one button when i enter a name in 1st textbox i should retrive a particular address for that name from database in textbox2.i have tried a lot ,please help...

Steps:

1. Add handler for button'c click event.
2. Inside that handler add code to connect with database.
3. Configure Command object by assigning select statement and a reference of connection object.

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.