G
Guest
I am new to AJAX.
I am applying AJAX to a current web solution to get the "instant behaviour".
On my main page I have two sets of criteria: Specific and Wide.
Each set is placed in a View container.
I am not sure that I configured the Triggers correct, but the behaviour is OK.
When I click the linkbuttons they switch between two sets of search controls.
When I click the search buttons they reload the display panel.
BUT .... if the display panel is loaded with lots of data it takes an awful
lot of time to switch search panel! It also takes far too long time to
perform the next search. How can the current page data load affect the next
execution time?
Before I applied AJAX I was quite satisfied with the page. It gave a pretty
fast response to all actions. The only adjustment I needed was to avoid full
page rewrite when not needed. When I did, I also increased response times
enormously!
I appreciate all kinds of suggestions.
<asp:UpdatePanel ID="pnlSearch" runat="server">
<ContentTemplate>
<asp:MultiView ID="SearchMode" runat="server">
<asp:View ID="Specific" runat="server">
(Several criteria controls goes here ....)
<asp:LinkButton ID="lnkShowWide" runat="server">
<asp:Button ID="btnSearchSpecific" runat="server"
CssClass="inputbox" Text=" View " />
<asp:UpdateProgress ID="myUpdateProgress" runat="server">
<ProgressTemplate>
<img src="./CommonUI/Web/images/indicator.gif" title="Updating
page content" alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
</asp:View>
<asp:View ID="Wide" runat="server">
(Several criteria controls goes here ....)
<asp:LinkButton ID="lnkShowSpecific" runat="server">
<asp:Button ID="btnSearchWide" runat="server" CssClass="inputbox"
Text=" View " />
<asp:UpdateProgress ID="myUpdateProgress" runat="server">
<ProgressTemplate>
<img src="./CommonUI/Web/images/indicator.gif" title="Updating
page content" alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
</asp:View>
</asp:MultiView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lnkShowSpecific" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lnkShowWide" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="pnlDisplay" runat="server">
<ContentTemplate>
(Nested repeater control with long result list ...)
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnSearchSpecific"
EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="btnSearchWide" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
I am applying AJAX to a current web solution to get the "instant behaviour".
On my main page I have two sets of criteria: Specific and Wide.
Each set is placed in a View container.
I am not sure that I configured the Triggers correct, but the behaviour is OK.
When I click the linkbuttons they switch between two sets of search controls.
When I click the search buttons they reload the display panel.
BUT .... if the display panel is loaded with lots of data it takes an awful
lot of time to switch search panel! It also takes far too long time to
perform the next search. How can the current page data load affect the next
execution time?
Before I applied AJAX I was quite satisfied with the page. It gave a pretty
fast response to all actions. The only adjustment I needed was to avoid full
page rewrite when not needed. When I did, I also increased response times
enormously!
I appreciate all kinds of suggestions.
<asp:UpdatePanel ID="pnlSearch" runat="server">
<ContentTemplate>
<asp:MultiView ID="SearchMode" runat="server">
<asp:View ID="Specific" runat="server">
(Several criteria controls goes here ....)
<asp:LinkButton ID="lnkShowWide" runat="server">
<asp:Button ID="btnSearchSpecific" runat="server"
CssClass="inputbox" Text=" View " />
<asp:UpdateProgress ID="myUpdateProgress" runat="server">
<ProgressTemplate>
<img src="./CommonUI/Web/images/indicator.gif" title="Updating
page content" alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
</asp:View>
<asp:View ID="Wide" runat="server">
(Several criteria controls goes here ....)
<asp:LinkButton ID="lnkShowSpecific" runat="server">
<asp:Button ID="btnSearchWide" runat="server" CssClass="inputbox"
Text=" View " />
<asp:UpdateProgress ID="myUpdateProgress" runat="server">
<ProgressTemplate>
<img src="./CommonUI/Web/images/indicator.gif" title="Updating
page content" alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
</asp:View>
</asp:MultiView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lnkShowSpecific" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lnkShowWide" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="pnlDisplay" runat="server">
<ContentTemplate>
(Nested repeater control with long result list ...)
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnSearchSpecific"
EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="btnSearchWide" EventName="Click" />
</Triggers>
</asp:UpdatePanel>