|
-
Jun 22nd, 2005, 10:34 AM
#1
Thread Starter
Lively Member
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
-
Jun 22nd, 2005, 03:10 PM
#2
Frenzied Member
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.....
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|