Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

One Listbox showing all cities. If you select one city in
list box the information related to that particular city
should be displayed in Datagrid . How do you do that?

Answer Posted / sathish

On select change event of the list box use the following code.

Dim con as new sqlconn("connectionstring")
con.open()
dim da as sqlda("select * from table where cityname=" &
listbox1.selecteditem)
dim ds as new dataset
da.fill(ds)

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is autopostback true?

1123


How asynchronous call can be implemented using delegates?

1045


Explain what is an abstract class?

1075


What is server redirect?

1031


What are sql joins?

1055


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

932


What is an asp.net web form?

1157


What is application Object?

1075


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

2092


What is the significance of ASP.NET routing?

1123


What is AutoEventWireup attribute for ?

1073


Explain serialization and deserialization?

1071


What is scope of an application variable in asp.net?

1042


What is the main function of url routing system in asp.net mvc? : asp.net mvc

1063


What are tuples?

1233