Help on Cascading topic

Posted by Vijayar under C# on 5/3/2011 | Points: 10 | Views : 1220 | Status : [Member] | Replies : 1
Hi,

I have two drop-downs one is Country and another is State. I want to get the names of all states corresponding to a particular country without manually selecting it. I want that when I select the any Country from the Country drop-down, the States drop down should get automatically selected. How can I do it in 4 layer architecture ,explain me with an example

vijaya

vijaya


Responses

Posted by: Prabhakar on: 5/3/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi vijayar

Country dropdownlist on selectedindexchanged . . . Fill ur State Dropdownlist and on event set Index or item which is your requirement . .
if u want to see 3 no state based on country to write this . .

protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)

{
Fill state();
dllstate.SelectedIndex=3;
}


try it . . and show ur condition which one u want to selection . .

Best Regard's
Prabhakar

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response