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
Is there any property names “isnavigating”?
What is state management in asp.net with example?
What is a session in programming?
How to add DateTime Control in normal DataGrid Server Control?
What is enableviewstate in asp net?
Explain the updatepanel?
What are the advantages of asp.net?
What is the concept of view state in asp.net?
Do cookies store passwords?
Is it possible to change the index of primary key on table?
What is the use of web.config file?
Name the two properties are on every validation control?
What is the significance of proxy user?
How can we create pie chart in asp.net?
What is clr? Difference between clr & cts?