你如果使用asp.net,难道没有使用过updatepanel控件吗?updatepanel就是彻底解决这类问题(以及其他5、6种问题)的。

解决方案 »

  1.   


    大侠回我问题了啊,呵呵
    我刚接触.net,也搜过这问题,也有您的答案,但是现在项目要交工了,没空看ajax了,所以,要不大哥,给来个具体点的教程或者文章呗,我看过您回答题,的确是高手,呵呵
      

  2.   

    updatepanel控件 很简单的,套上就可以了。不过有空看看ajax吧,很强大的说。
      

  3.   

    我用了
    <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True">
                <ContentTemplate>
    的确能防住刷新,但是新问题来了,为什么会偶尔报这错
    Server Error in '/' Application.Could not load file or assembly 'DevExpress.CodeRush.Common, Version=10.1.0.0, Culture=neutral, PublicKeyToken=35c9f04b7764aa3d' or one of its dependencies. 지정된 파일을 찾을 수 없습니다.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'DevExpress.CodeRush.Common, Version=10.1.0.0, Culture=neutral, PublicKeyToken=35c9f04b7764aa3d' or one of its dependencies. Source Error: 
    Line 23: <body>
    Line 24:     <form id="form1" runat="server">
    Line 25:         <asp:ScriptManager ID="ScriptManager1" runat="server">
    Line 26:         </asp:ScriptManager>
    Line 27:         <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True">Source File: d:\home\olap\Shizhouse\AgentJaetrn.aspx    Line: 25 Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.CodeRush.Common, Version=10.1.0.0, Culture=neutral, PublicKeyToken=35c9f04b7764aa3d' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].我看到有人回答说是没装mvc,是这样吗?
      

  4.   

    这么多年了还真没用多少 。net 控件