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
Explain the Session state management options available with ASP.NET?
How do you hide the columns?
What is the difference between pathparam and queryparam?
What is intrinsic objects in asp.net?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What is cache in asp net?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is asp.net mvc? : asp.net mvc
How is it possible for .NET to support many languages?
Which namespace is used by ado.net?
Differentiate between a page theme and a global theme?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
Where sessions are stored in asp.net?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
What is difference in .net 1.1 and .net 2.0?