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 / yogaraj i

protected void ddlcity_SelectedIndexChanged(object sender,
EventArgs e)
{
if (ddlcity.SelectedValue == "Any of the city name")
{
DataSet ds = GetUserInfo();
GridviewCitycity.DataSource = ds;
GridviewCity.DataBind();
}
}

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

680


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

586


How can we communicate with each server in N-tier Architecture? and what are the methods?

1792


What do you mean by authorization?

527


What is the difference between visual basic and asp.net?

524






What are the Types of objects in ASP

588


Explain the difference between globalization and localization techniques

540


Is post back property in asp net?

531


Explain the asp.net mvc request life cycle? : asp.net mvc

508


Differentiate between a hyperlink control and a linkbutton control.

559


What is work flow gen? how can it will work with .Net?

2578


What is server infrastructure?

617


How to fetch a data from one table to another table in asp.net ?

587


What is the difference between runtime version and version?

511


Why do we need a web application session?

515