Update a webpane in a webpane group using flypostbackmanager

2 replies. Last post: January 19, 2011 2:56 PM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Fung InterMember

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

All times are GMT -5. The time now is 9:25 PM.
Previous Next