本文介绍了ASP MENU和xml数据源.MENU CLICK FULL PAGE正在刷新.如何预防?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在母版页和顶部导航栏和左侧导航栏中.在每个菜单上单击项目,整个页面都会刷新

我希望顶部菜单保持稳定,即不应刷新整个页面.没有AJAX是不可能的.
TopNav.acx:

Hi,
In master page and top nav and left nav.On each menu click item the full page is refreshing

i want the top menu to be stable ie the full page should not refresh.Without AJAX is it not possible.
TopNav.acx:

<asp:Menu ID="LoginMenu" runat="server" DataSourceID="xmlDataSource" Orientation="Horizontal"

    StaticEnableDefaultPopOutImage="false" DynamicSelectedStyle-CssClass="on" 

    DynamicSelectedStyle-ForeColor="White" StaticSelectedStyle-CssClass="on"

    onmenuitemdatabound="LoginMenu_MenuItemDataBound" >
    <databindings>
        <asp:MenuItemBinding DataMember="MenuItem" ValueField="Value" NavigateUrlField="NavigateUrl" TextField="Text"   />
    </databindings>

 
<asp:XmlDataSource ID="xmlDataSource" EnableCaching="false" TransformFile="~/MenuTransformXSLT.xsl" XPath="MenuItems/MenuItem"  

    runat="server"   />


在母版页中,我用
称呼它


In master page i call this by

<form id="SSAForm"  runat="server">

   <!-- Start container div block -->
   <div id="container">
       <!-- Start top div block -->
       <div id="top">
           <SSA:Header  runat="server" ID="Unnamed1" />
       </div>
       <!-- End top div block -->
       <!-- Start nav div block -->


       <div id="nav">
           <SSA:TopNav  runat="server" ID="TopNavigation" DynamicMenuLevels="2" CSSClassCurrentMenu="on"  />
       </div>
       <!-- End nav div block -->
       <!-- Start breadCrum div block -->
       <div id="breadCrum">
           <SSA:BreadCrumb  runat="server" ID="BreadCrumbNavigation" SeperatorText="->" DefaultMenuText="Home"
               DefaultMenuURL="/index.aspx" CSSClassSeperator="seperator" CSSClassLast="last" />
           <asp:Label ID="BreadCrumbLastAppend" runat="server" Text="">
       </div></div>


guhananth.S


guhananth.S

推荐答案


这篇关于ASP MENU和xml数据源.MENU CLICK FULL PAGE正在刷新.如何预防?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 01:46