-
Dropdownlist problem
Hi Dear Friends.
I am having two dropdownlistbox in my asp.net application.
Basically there is a parent child relation ship between them.
I mean is that one Dropdownlist is having records from master table and another fronm child table.
What I want is that when i select the value from parent Dropdownlist corresponding value for that master record should be populated in the second Dropdownlist.
Currently the code which i have written is doig a postback which refreshes the page.I dont want to refresh the page.
Please help me to provide the solution.
Is it possible in .net itself or we have to use Javascript.
I will appreciate it someone help me with a code.
Thanks
-Sachien
-
Re: Dropdownlist problem
In that situation I simply rebind my child ddl in the change event of the parent ddl. This does require a post back, unless you did some work to cache your data on the page in javascript arrays for every item in the parent list. then you could just use javascript and avoid the postback. I'm sure there are other options like putting it on the client in cookies or something.....