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
Define session in asp.net.
Explain what is clr?
What are the server control tags in asp.net.?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
Give some salient points of difference between request processor and request dispatcher.
Difference between web user control and web custom control?
How can you enable impersonation in the web.config file?
What methods are fired during the page load? Init()
Which data type does the rangevalidator control support?
What is difference between view state and session state?
What is the concepts of globalization and localization in .net?
What is the concept of postback in asp.net?
Difference between .NET and previous version?
What is viewstate? What does the “enableviewstate” property do?
Are xaml file compiled or built on runtime?