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
What is autopostback true?
How asynchronous call can be implemented using delegates?
Explain what is an abstract class?
What is server redirect?
What are sql joins?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
What is an asp.net web form?
What is application Object?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
What is the significance of ASP.NET routing?
What is AutoEventWireup attribute for ?
Explain serialization and deserialization?
What is scope of an application variable in asp.net?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
What are tuples?