Hi,
I have an UpdatePanel wrapped around a repeater and a button. The repeater has a Peter Blum DateTextBox which uses a lot of javascript as well
The Date controls work fine the first time the page is loaded, but once I click the button that is inside the updatePanel, the DateControl stops working. If I try to modify the text box an alert is displayed which says that the page is loading. I tested using an update progress control to check if any asych post backs going on at that time and there were'nt.
So is this a bug in Atlas, that it does not work with javascript intensive controls or am I doing something wrong.
here is a portion of the aspx page
<
br/><br/><atlas:UpdateProgressID="progress"runat="server"><ProgressTemplate>Page is Loading<asp:ImageID="Loading"runat="server"ImageUrl="http://asyncpostback.com/Images/spinner.gif"/></ProgressTemplate></atlas:UpdateProgress><
atlas:UpdatePanelID="updateRepeater"runat="server"Mode="conditional"><
Triggers><
atlas:ControlEventTriggerControlID="Button2"EventName="Click"/></
Triggers><
ContentTemplate><asp:RepeaterID="Repeater1"OnItemCreated="OnItemCreated"runat="server"><ItemTemplate><table><tr><td><asp:DropDownListID="ddlLocations"runat="server"></asp:DropDownList></td><td><Date:DateTextBoxID="DateTextBox"xDate='<%#Eval("StartDate")%>'xPopupCalendar-xAutoSharedCalendarB="true"runat="server"></Date:DateTextBox></td></tr><tr><td><asp:LabelID="lblTest"runat="server"Text='<%#Eval("VenueID")%>'></asp:Label></td></tr></table></ItemTemplate></asp:Repeater></ContentTemplate></
atlas:UpdatePanel><
asp:ButtonID="Button2"runat="server"OnClick="onClick2"Text="Button"/>
If anybody has any idea it would be grealty appreciated.
thanks
I found out the reason for this problem. I was actually using a third party control that was designed before Atlas came out. This control wrote its own scripts. When this was placed inside an update panel the HTML tags of the web control are replaced by Atlas. However, the javascript that was written by this control is no longer used, since Atlas is unaware of that. The Validators do not work with update panels for similar reasons.
As far as third party controls are concerned, any control that uses thePage.RegisterArrayDeclaration, Page.RegisterStartupScript or Page.RegisterClientScriptBlock will probably break with AJAX.
hello.
can you explai what you mean by "the htmltags of the web controls are replaced by atlas"? btw, i'm not really sure on why you say that using the clientscriptmanager methods will break in this version of atlas...
I too am using Peter Blum's Date controls and his Validation controls, and Atlas seems to break all of them for me too.
Rob
1 comment:
Just found this posting. If you are using my controls within an AJAX environment, you need to tell my controls about it (as they can conform to several AJAX systems.)
Check out the "Using these controls with AJAX" section of the General Features Guide. Often all it requires is adding the PageManager control like this:
If you have further questions on any of my products, why not contact me? I support my products, and its free tech support. My email is suppport @ peterblum.com (omit the spaces).
--- Peter Blum
www.PeterBlum.com
Post a Comment