刷新ajax选项卡容器中的iframe [英] Refresh iframe inside ajax tab container

查看:88
本文介绍了刷新ajax选项卡容器中的iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在使用ajaxToolkit:TabContainer。在这里,每个标签内部都有一个iframe。浏览选项卡时,它会在iframe中加载页面。但是,在第二次单击该选项卡时,它不会刷新页面。它只显示旧页面。是否有任何解决方案可以重新加载页面?





 <   ajaxToolkit:TabContainer     runat   =  server  

ID = StartTabContainer

高度 = 100%

宽度 = 100%

< span class =code-attribute> ActiveTabIndex = 0

OnDemand = true

< span class =code-attribute> AutoPostBack = false

TabStripPlacement = Top

CssClass = ajax__tab_xp

ScrollBars =

UseVerticalStripPlacement = false

VerticalStripWidth = 30px

>

< ajaxToolkit:TabPanel runat = server

HeaderText = 网站

已启用 = true

ScrollBars = 自动

OnDemandMode = 一旦

ID = SiteTabId >

< ContentTemplate >
< uc:UCPageViewer runat = server id = SitePageViewer 标题 = 网站 Src = ../ Pages /Site.aspx\" / >
< / ContentTemplate >
< / ajaxToolkit:TabPanel >
< < span class =code-leadattribute> ajaxToolkit:TabPanel runat = server

HeaderText = 管道段

已启用 = true

< span class =code-attribute> ScrollBars = 自动

OnDemandM ode = 一旦

< span class =code-attribute> ID = PipeTabId

>

< ContentTemplate >
< uc:UCPageViewer runat < span class =code-keyword> = server id = PipePageViewer 标题 = 管段 Src = ../ Pages / PipeSegment.aspx / >

< / ContentTemplate >
< / ajaxToolkit:TabPanel > ;







UCPageViewer内容:



 <   div  >  

< iframe <跨度cl ass =code-attribute> id = PageViewerFrame runat = server width < span class =code-keyword> = 100% height = 640px >


< / iframe >
< / div >







谢谢

解方案

请参考以下链接:



http://forums.asp.net/p/1485812/3487084.aspx#3487084

http://forums.asp.net/p/1480067/3461595.aspx#3461595

http://forums.asp.net/p/1470362/3413133.aspx#3413133

http://forums.asp.net/p/1489582/3506133.aspx#3506133

Hello,

I am working with ajaxToolkit:TabContainer. In this every tab will have one iframe inside. When navigating through the tabs its loading the pages in iframe. But on second click on that tab its not refreshing the page. Its just displaying old page. Is there any solutions to reload the page again?


<ajaxToolkit:TabContainer runat="server"

         ID="StartTabContainer"

        Height="100%"

        Width="100%"

        ActiveTabIndex="0"

        OnDemand="true"

        AutoPostBack="false"

        TabStripPlacement="Top"

        CssClass="ajax__tab_xp"

        ScrollBars="None"

        UseVerticalStripPlacement="false"

        VerticalStripWidth="30px"

        >

    <ajaxToolkit:TabPanel runat="server"

            HeaderText="Site"

            Enabled="true"

            ScrollBars="Auto"

            OnDemandMode="Once"

            ID="SiteTabId">

            <ContentTemplate>
                <uc:UCPageViewer runat="server" id="SitePageViewer" Title="Site" Src="../Pages/Site.aspx" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    <ajaxToolkit:TabPanel runat="server"

            HeaderText="Pipe Segment"

            Enabled="true"

            ScrollBars="Auto"

            OnDemandMode="Once"

            ID="PipeTabId"

             >

            <ContentTemplate>
                <uc:UCPageViewer runat="server" id="PipePageViewer" Title="Pipe Segment" Src="../Pages/PipeSegment.aspx" />

            </ContentTemplate>
        </ajaxToolkit:TabPanel>




UCPageViewer content:

<div>

    <iframe id="PageViewerFrame" runat="server" width="100%" height="640px">


    </iframe>
</div>




Thanks

解决方案

Please Refer to the following links:

http://forums.asp.net/p/1485812/3487084.aspx#3487084
http://forums.asp.net/p/1480067/3461595.aspx#3461595
http://forums.asp.net/p/1470362/3413133.aspx#3413133
http://forums.asp.net/p/1489582/3506133.aspx#3506133


这篇关于刷新ajax选项卡容器中的iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆