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 difference between ispostback and autopostback in asp net?
How you will manage the state of ASP.NET controls?
What is the difference between session.abandon() vs clear()?
What is the difference between user control and custom control?
In asp.net, how can you validate drop down box?
Explain what is event bubbling?
In Code-Behind class which kind of code (server or client) is found ?
Is there any property names “isnavigating”?
Do you support digital rights management to protect my videos?
Explain what is an abstract class?
Where is asp.net session stored?
What is jade template engine?
Is web config mandatory?
Why is asp.net so popular?
How do u deploy ur project?