Results 1 to 2 of 2

Thread: Dropdownlist problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    121

    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

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    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
  •  



Click Here to Expand Forum to Full Width