简体   繁体   English

ASP.NET Telerik AJAX Web表单加载问题

[英]ASP.NET Telerik AJAX Web Forms Loading Issues

I have an ASP.NET web forms project in which I use telerik controls and AJAX Manager. 我有一个ASP.NET Web表单项目,在其中使用了Telerik控件和AJAX Manager。 The problem is here: 问题在这里:

    <telerik:RadAjaxManager ID="rAM" runat="server" EnableAJAX="true" DefaultLoadingPanelID="rlp">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rtsSystemsSetup">
            <UpdatedControls>
                <%--<telerik:AjaxUpdatedControl ControlID="rtsSystemsSetup" ></telerik:AjaxUpdatedControl>--%>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rlbSystems">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rlbSystems"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rlbMeasurementTypes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rlbMeasurementTypes"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="rlp" runat="server">
</telerik:RadAjaxLoadingPanel>

When I have EnableAJAX="true" everything works fine in a production and published environment. 当我启用EnableAJAX =“ true”时,在生产和发布环境中一切正常。 However, when I am in debug mode on my local machine, I have to set it to FALSE for some things to work correctly while I am testing. 但是,当我在本地计算机上处​​于调试模式时,我必须将其设置为FALSE,以便在测试时某些事情可以正常工作。 For example, if I leave it to TRUE, when I am trying to get a Listbox to ping the OnSelectedIndexChangedEvent, it does nothing--set Ajax=false, and it works fine. 例如,如果我将其保留为TRUE,则当我尝试获取列表框来ping OnSelectedIndexChangedEvent时,它什么都不做-设置Ajax = false即可正常工作。 However, I have to change it back before I publish and it works fine in production. 但是,我必须在发布前将其改回,并且在生产中可以正常使用。 Some things though, like bootstrap modal popups, only work when I have AJAX=true. 但是,有些事情(例如引导程序模式弹出窗口)仅在AJAX = true时有效。 So I am constantly having to reload the page by making this ridiculous change to test different parts of my page. 因此,我经常不得不通过进行此荒谬的更改来重新加载页面,以测试页面的不同部分。

My CTO makes changes to the project occasionally and he has no issues with this AJAX problem I am having. 我的CTO偶尔会对该项目进行更改,而他对我遇到的AJAX问题没有任何疑问。 Has anybody ever ran across this? 有人遇到过这个吗? Is there a server setting on my IIS Express that is wrong somewhere or something in VS I have setup wrong? IIS Express上是否有服务器设置在某处错误或在VS中我设置错误?

Try to set AutoPostBack = "True" in the ListBox , because after disabling manager under AJAX sending a refresh but if Menager is on the ListBox itself refreshes . 尝试在ListBox中设置AutoPostBack = "True" ,因为在禁用AJAX下的管理器后,发送刷新但如果Menager在ListBox上,则刷新自身。 This should help. 这应该有所帮助。 I once had a similar problem 我曾经有过类似的问题

<telerik:RadListBox ID="RadListBox1" AutoPostBack="" runat="server"></telerik:RadListBox>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM