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 difference between ispostback and autopostback in asp net?

960


How you will manage the state of ASP.NET controls?

1006


What is the difference between session.abandon() vs clear()?

930


What is the difference between user control and custom control?

880


In asp.net, how can you validate drop down box?

1098


Explain what is event bubbling?

981


In Code-Behind class which kind of code (server or client) is found ?

997


Is there any property names “isnavigating”?

983


Do you support digital rights management to protect my videos?

812


Explain what is an abstract class?

968


Where is asp.net session stored?

890


What is jade template engine?

993


Is web config mandatory?

923


Why is asp.net so popular?

918


How do u deploy ur project?

2631