AJAX UpdatePanel related
-
Good day to all, I have a few panels control inside one UpdatePanel (AJAX extension), these items have drag and drop features, upon dragging these panels and dropping them at a different location, a webservice will be called from client side to update the new location of the panel in the database. The problem now is I have another dropdownlist outside this UpdatePanel which is databind. Whenever the location of any panel is dragged and moved to a new location, the item in the dropdownlist should be different as it uses a stored procedure which is somehow link to the above attribute. The problem I'm facing now is that I'm unable to update the dropdownlist by using the ddltest.DataBind() unless I reload the whole page instead of using an UpdatePanel. I'm quite new to AJAX so feel free to correct me on my misconcept and advise me on how should I tackle this problem. Thanks in advance Cheers
-
Good day to all, I have a few panels control inside one UpdatePanel (AJAX extension), these items have drag and drop features, upon dragging these panels and dropping them at a different location, a webservice will be called from client side to update the new location of the panel in the database. The problem now is I have another dropdownlist outside this UpdatePanel which is databind. Whenever the location of any panel is dragged and moved to a new location, the item in the dropdownlist should be different as it uses a stored procedure which is somehow link to the above attribute. The problem I'm facing now is that I'm unable to update the dropdownlist by using the ddltest.DataBind() unless I reload the whole page instead of using an UpdatePanel. I'm quite new to AJAX so feel free to correct me on my misconcept and advise me on how should I tackle this problem. Thanks in advance Cheers
Hi larree11 You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values. I think this will help you to resolve your problem
-
Hi larree11 You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values. I think this will help you to resolve your problem
Hi Venk259, First thanks for the reply... I did try this method before but the dropdownlist did not reload with fresh data whenever i drag and drop a panel. I have set the dropdownlist autopostback to true but its not refreshing. Any idea why is it like tat? by the way the web service called by the drag and drop is done on client side by calling the webservice using javascript. Any work around? Cheers