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
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What is a query string in a url?
Explain how dot net compiled code will become platform independent?
Is post back in asp.net?
What is web api vs wcf?
Which protocol is used in a web api?
What is the difference between CC and BCC?
Explain About duration in caching technique
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
Define common type system?
What are the Types of authentications in IIS
Why is global asax is used?
Is it true that a Web service must be written in .NET or not?
What are server side controls?
What are assemblies and namespaces and explain the difference between them ?