Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / May 2006

Tip: Looking for answers? Try searching our database.

Loading Combo's (dropdownlist) and java script

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hero41Day - 12 May 2006 06:00 GMT
Hi,

I have a very weird problem with a control that I'm trying to build
now.

I'm having two dropdownlists controls (ASP.NET) where the primary one
hold the categories and is populated when the page is loaded, and the
second one is populated depend on the value selected in the first one.
To load the 2nd dropdown I'm using a combination of AJAX (to retrieve
the data) and javascript to fill in the items (the postback is disabled
so NO page refresh is taking place when the selected item occurred).

The weird thing that happen is that upon page post-back all the items
that I've added to the 2nd dropdownlist (using javascript)
disappeared  and the selected value for the 1st stays the same.

If I make them to work with autopost back, everything works great
(values preserved in the dropdownlist.) does anyone has any idea what
should I do?

Thanks.
intrader - 14 May 2006 07:26 GMT
> Hi,
>
[quoted text clipped - 17 lines]
>
> Thanks.
Makes sense to me as the AJAX stuff is not updating the state at the server
(no postback).
r s - 31 May 2006 10:23 GMT
Have the same problem, any way over it ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.