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
What is the web.config file in asp?
What is a multilingual website?
How do we sort the data from a dataset?
What role “#&&” plays in a querysting?
What is the differences between a primary key and a unique key in sql server?
What a diffgram is, and a good use for one?
What is css in asp.net?
Explain method to handle error using HttpError in Web API?
What is the use of placeholder control? Can we see it at runtime?
How does exception management works in ASP.NET?
Explain login controls.
What is the concept of postback in asp.net?
What is the life cycle of an asp.net page?
What are HTTP handlers in ASP.NET?
How to turn off cookies for a page?