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
Is it possible for me to change my aspx file extension to some other name?
What is inproc mode in session?
What is the concept of postback in asp.net?
Securitywise What are the Enhancements in 2.0?
Explain managed code an un-managed code.
How we can force all the validation controls to run?
Explain file-based dependency and key-based dependency.
What is cached data phone?
What is difference between datalist and gridview?
What is use of <% %> in asp.net?
Which is better php or asp.net?
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.
What are validator? How do you disable them?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
What is the difference between cache and cookies?