fr-clmm
-
3/2/2009 8:21:28 AM
RE:Problem with AJAX-WebPart and .NET 3.5
Hi Juraj,
I think the AJAX toolkit runs correctly, we use this controls:
- asp:UpdatePanel (AsyncPostBackTrigger) - ajaxToolkit:TextBoxWatermarkExtender - ajaxToolkit:ValidatorCalloutExtender - asp:Timer
The UpdatePanel has a Textbox with ValidationCheck (works) and a few Checkboxes which could be enabled/disabled with buttons (works) and a request-button..
The Timer runs through the checkboxes and looks if it is checked, if it is he runs through a asp procedure and responses a line to the asp:Repeater control (placed in the asp:UpdatePanel too).
This lines are shown near to end, but finally the lines cleared... i've debuged it and finally it runs to this kentico - code:
CMSAdminControls\Debug\ViewState.ascx.cs => protected override void OnPreRender(EventArgs e) last line executed is "this.Visible = false;" - final else-code and really one of the last lines in this procedure...
After I end this procedure within VisualStudio 2008 Debugger the asp:Repeater seems to be "deleted", it isn't visibled and i couldn't find it with IE-developper-toolbar (I know it couldn't found at the normal page source code).
I'll tried it with a simple own web-project, too. There it works fine. We only created a simple as possible default.aspx and inserted a Ajax-Scriptmanager and inserted the WebPart-Code one on one - the source-code, too (ok - we cleared the kentico inerhits at top).
It really looks like the Kentico-Code will finally clear the asp:Repeater - the checkboxes and textbox are holding there state.
By the way - the lines are stored in as Session-Object (Type DataTable) - but they are shown correctly until the timer ends... any time we set the timer to enabled=false the asp:repeater is cleared (ok - we don't know what exactly happens, but it must have to do something with this), we changed the asp:repeater-ID and asp:timer-ID, but it wan't resolve the problem...
Any further idea's? I got through my code and can't find any error or something like that, and it works with Kentico 4 + ASP2 but not with Kentico 4 + ASP3.5SP1... I've cleared every validator, too - nothing is used from ASP.NET 3.5 Ajax-Extension-Toolkit..
|