how to filter one dropdownlist to another without using Ajax

Posted by Tapanparida36 under ASP.NET on 10/30/2012 | Points: 10 | Views : 1815 | Status : [Member] | Replies : 4
Hi,

I have two Dropdownlist control.One is for bind Country name and another is State name. When i select country name in dropdownlist , then display State name.But in this case full page is refreshed.I want to refresh for a particular position.

How to solve this without using Update Panel control ?




Responses

Posted by: Sourabh07 on: 10/30/2012 [Member] Starter | Points: 25

Up
0
Down
hi..

sir, you can use Anthem instead.

It binds the state dropdown with respect to the country without refreshing the page ( without postback ).

Sourabh07

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

Posted by: Vasanthmvp on: 10/30/2012 [Member] Starter | Points: 25

Up
0
Down
Hi, its a very good application.
Generally we see this while applying for any exams. Here,
1. JQuery and JSon are used to do this.
User can specify the selection drop down in the html itself or else
2. DataBinding to drop down list from xml file also.
we call it as "Chained State city dropdown list from JSON"
This link will help you with an example:
http://stackoverflow.com/questions/4954081/chained-state-city-dropdown-list-from-json
Regards,

Awesome Coding !! :)

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

Posted by: Tapanparida36 on: 10/31/2012 [Member] Starter | Points: 25

Up
0
Down
Hello sir,

can you send me in accurate code when i write in aspx page then i will implement it.

Thanks & Regards
Tapan Kumar

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

Posted by: Hariinakoti on: 10/31/2012 [Member] Starter | Points: 25

Up
0
Down
hi,
we can do based on index numbers.
if you select like this
if( ddl.item(0).checked=true)
{
ddl.item(1).visible=true;
}

try like this.I hope it is useful to u.


Thanks & Regards
Hari

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

Login to post response