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 difference between View State and Hidden Field in ASP.NET?
Is asp net front end or backend?
Define xmlvalidatingreader class.
How does session state work in asp.net?
Explain Session state management options in ASP.NET.
Explain diff between dataset and datareader?
What are the new data controls in asp.net 2.0?
What is cookieless session id explain in brief?
Can you explain one critical mapping?
Does google crawl redirects?
What are the options in ASP.NET to maintain state?
Explain the difference between server control and html control.
Where is session data stored in asp net?
How to change Master page in ASP.Net using code?
What methods are fired during the page load? Init()