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


Please Help Members By Posting Answers For Below Questions

Is it possible for me to change my aspx file extension to some other name?

586


What is inproc mode in session?

511


What is the concept of postback in asp.net?

592


Securitywise What are the Enhancements in 2.0?

1492


Explain managed code an un-managed code.

599






How we can force all the validation controls to run?

527


Explain file-based dependency and key-based dependency.

573


What is cached data phone?

530


What is difference between datalist and gridview?

581


What is use of <% %> in asp.net?

548


Which is better php or asp.net?

520


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.

1424


What are validator? How do you disable them?

602


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

535


What is the difference between cache and cookies?

520