Page reloading?? (Help needed)

Results 1 to 2 of 2

Thread: Page reloading?? (Help needed)

  1. #1
    Join Date
    Dec 1969

    Default Page reloading?? (Help needed)

    I have two DropDownList controls (ddlist1 and ddlist2). <BR>ddlist2 should be populated after the item from ddlist1 is selected. How can I do this without the page reloading?<BR><BR>If I do the following the page gets reloaded: <BR>&#060;asp:dropdownlist id="ddlist1" Width="230" AutoPostBack="true" OnSelectedIndexChanged="populate_ddlist2" runat="server" /&#062;<BR><BR>If I omit AutoPostBack="true" the ddlist2 does not get populated.<BR>What can I do to get it populated immediately without reloading the page?

  2. #2
    Join Date
    Dec 1969

    Default RE: Page reloading?? (Help needed)

    DDL is a server side control. In order to populate it you will have to go back to the server.<BR><BR>It is possible that if you sent all of the data to the client in javascript arrays or something and then right a javascript function to add options to the select tag client side, but that would probably get messy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts