iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I am trying to update a webpane's content URL using flypostback, if I use "rendercontrol" for the WebPaneManager, All webpanes will be refreshed, is there any way to refresh only one Pane in a WebPaneManager? Attached my page for your refrence.
ASPX Page:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestWebPane.aspx.vb" Inherits="InterTest.TestWebPane" %> <%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head runat="server"> <title></title> <script type='text/javascript'> function setURL(){ var fpb = ISGetObject("WebFlyPostBackManager1"); fpb.ChangePaneUrl("TestLoading.aspx"); } </script> </head> <body> <form id="form1" runat="server"> <div> <ISWebDesktop:WebFlyPostBackManager ID="WebFlyPostBackManager1" runat="server" ServiceUrl="TestWebPane.aspx"> </ISWebDesktop:WebFlyPostBackManager> <ISWebDesktop:WebPaneManager ID="WebPaneManager1" runat="server" Height="100%" Width="100%"> <FrameStyle BackColor="#E0E0E0" BorderColor="#404040" BorderStyle="Solid" BorderWidth="1px" ForeColor="White"> <Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding> </FrameStyle> <RootGroupPane Name="RootGroup"> <Panes> <ISWebDesktop:WebPane Name="Pane0" Text="Pane 0"> <ContentTemplate> <label id="lbl" onclick="setURL()">Set the URL to Page</label> </ContentTemplate> </ISWebDesktop:WebPane> <ISWebDesktop:WebPane Name="Pane1" Text="Pane 1" ContentMode="UseIFrame"> </ISWebDesktop:WebPane> </Panes> </RootGroupPane> <PaneSettings> <ContainerStyle Overflow="Auto" OverflowY="Auto" OverflowX="Auto" BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black"> <Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding> </ContainerStyle> <HeaderMainStyle GradientType="Vertical" BackColor2="LightGray" BackColor="DimGray" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" Font-Names="Arial" Font-Size="11pt" ForeColor="White"> <Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding> </HeaderMainStyle> <HeaderSubStyle GradientType="Vertical" BackColor2="White" BackColor="#E0E0E0" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" Font-Names="Tahoma" Font-Size="8pt"> <Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding> </HeaderSubStyle> <InfoTextStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="White"></InfoTextStyle> </PaneSettings> <SplitterStyle> <Normal BackColor="#E0E0E0"></Normal> <Active BaseStyle="Normal" BackColor="Black"></Active> </SplitterStyle> </ISWebDesktop:WebPaneManager> </div> </form> </body> </html>
VB Code:
Imports ISNet.WebUI.WebDesktop Public Class TestWebPane Inherits System.Web.UI.Page Private m_Listener As WebFlyPostBackListener Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load m_Listener = New WebFlyPostBackListener(Me) End Sub <WebFlyPostBackMethod()> _ Public Sub ChangePaneUrl(ByVal strURL As String) Dim pane1 As WebPane = WebPaneManager1.GetAllPanes.GetNamedItem("Pane1") pane1.ContentURL = strURL End Sub End Class
Thanks and Regards,
Fung
Hello Fung,
Actually, you can refresh a pane by using clientside approach (SetContentURL()). However, sometimes the loader style is not loading. In this case, you can trick it by loading the loader manually.You can choose to show the loader before change the url or etc. Please see my attached sample. I prefer to set the URL twice.First will load a page that contains my loading image. Then last, will load the destination page with timeout.Regards,Handy
P.S. The reason of using flypostback/Server-side setting pane's contentURL is to force the pane to show the loading animation.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname