I have a RadAjaxManager in my Master Page, as well as some controls for a 'shopping basket'
On my content page I have a number of user controls, with each one having an 'Add' button. These are added to the page dynamically.
The Ajax settings for the Add buttons are created in code in the Page_Load function.
When one of the add buttons are clicked, it should write a database entry, and then update the shopping basket to show the number of items currently in it.
This works fine, except for the first time a button is clicked.
The first time one of the 'Add' buttons are clicked, the database entry is created as expected, but the shopping basket does not get updated. The second button clicked updates everything as expected and the basket will show 2 items. Buttons then work as expected, with the basket showing correctly.
Putting a breakpoint in the code, all the expected events seem to fire, but the basket is not updated.
I am using Q1 2011, in VS2010 and .NET 4.0
Am I missing something?
Thankyou.
Paul
On my content page I have a number of user controls, with each one having an 'Add' button. These are added to the page dynamically.
The Ajax settings for the Add buttons are created in code in the Page_Load function.
When one of the add buttons are clicked, it should write a database entry, and then update the shopping basket to show the number of items currently in it.
This works fine, except for the first time a button is clicked.
The first time one of the 'Add' buttons are clicked, the database entry is created as expected, but the shopping basket does not get updated. The second button clicked updates everything as expected and the basket will show 2 items. Buttons then work as expected, with the basket showing correctly.
Putting a breakpoint in the code, all the expected events seem to fire, but the basket is not updated.
I am using Q1 2011, in VS2010 and .NET 4.0
Am I missing something?
Thankyou.
Paul