Wednesday, March 28, 2012

Multiple updates with Ajax

I have two dropdownboxes, one that is dependent on the other for the value. I have these dropdown boxes in an update panel using a sqldatasource on both of them. The second dropdown box uses the selected value from the first dropdown box to populate its content. I also have two text boxes that are start and end dates that are based on the second dropdown box. For further clarification, I have a publication dropdown box that will populate the issue dropdown box with a listing of all issues for that publication and also will populate the start and end dates for that issue. However, when I select a different publication and the issue is on another month, the issue then is updated but not the start and end dates. How would I go about accomplishing this?

//

//

Publication: ARCHI-TECH Buildings Interiors and SourcesIssue: April 2007 March 2007 January 2007 January/February 2007 December 2006 November/December 2006 October 2006 September 2006 September/October 2006 July 2006 July/August 2006 June 2006 May/June 2006 March/April 2006 January 2006 January/February 2006 November 2005 November/December 2005 September/October 2005 July 2005 July/August 2005 June 2005 May 2005 May/June 2005 April 2005 March/April 2005 February 2005 January 2005 January/February 2005 December 2004 November 2004 November/December 2004 September/October 2004 August 2004 July/August 2004 May/June 2004 March 2004 February 2004 January 2004*Section: Please Select a Section Awards Bottom Line Energy Issues Career CaseStudy CoverStory FastTalk Feature Innovations Awards - 2001 Innovations Awards - 2002 Interior Design Award - 2001 Interior Design Award 2002 News NextPage OnlineExclusive Opinion Product Smarter SmarterBuildings SubArticle TechWork theBuzz ViewPoint Who'sWho

Start Date:**End Date:**

Can you post the ASPX, or explain how you have this set up? Are the textboxes inside of the updatepanel? Do you have the textboxes in a separate updatepanel that has a trigger set? Are you updating the textbox values in the page_load event? You should try stepping through your code, and ensure that the code responsible for setting the text in the textboxes is actually being reached. If it is, verify that the textboxes are inside of an update panel. Control outside of the updatepanel can not be udpated asynchronously (unless insdie of another updatepanel).

No comments:

Post a Comment