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
Can we override the enablepartialrendering property of the scriptmanager class?
Fetch one page value to another page without using state-managment ?
What is session in http request?
What is web configuration file and how to use in web application
How you will improve web application performance?
How can you pass multiple complex types in Web API?
What are the different validators in asp.net?
Where session id is stored?
What is the adavantage of using ASP.NET routing?
How can you ensure a permanent cookie?
What is different authentication mechanisms used in ASP.NET?
What New Features comes with ASP.NET Web API 2.0?
What is user control in asp.net?
Explain server-side scripting?
Web API supports which protocol?