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 difference between dataset and datareader?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Differentiate the session object and application object?
Explain the advantages of passport authentication.
What is Cookies Less Session?
What is the difference between pathparam and queryparam?
Explain asp.net application life cycle?
What is advantage of code behind coding in ASP.NET?
Explain the concept of View Model in MVC?
What's the use of formatters in .net?
What is simple data binding?
what are configuration files?
How can we prevent browser from caching an aspx page?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
Write the different features of a Thread and a Process?