我做的网站 本地运行是没有错的 但是当我发布到网上空间上去的时候  当单击那些按钮的时候 有时候会出现这个提示  这个是什么原因呢?

解决方案 »

  1.   

    把网站根目录aspnet_client传上去
      

  2.   


    <body   onload="setTimeEnd();" style="text-align: center">   
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="100000" >
                <Scripts>
                    <asp:ScriptReference Path="JScript.js" />
                    <asp:ScriptReference Path="JScript2.js" />
                </Scripts>
            </asp:ScriptManager>
            <uc1:Head ID="Head1" runat="server" />
            
    <table width="744" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="35" background="Image/HOME_BG3.gif" style="width: 100px"></td>
        <td height="35" background="Image/HOME_BG9.gif" style="width: 683px"></td>
        <td height="1" style="width: 14px"><img src="Image/home_bg8.gif" width="13" height="35" /></td>
      </tr>
      <tr>
    ............       
                          <img src="Image/enter.jpg" />&nbsp;
                          <fieldset><legend>小键盘对照表:</legend>
                              <asp:Button ID="btnA" runat="server" Text="1/END--A/对" Width="120px" OnClick="btnA_Click" AccessKey="1"/><br>
                              <asp:Button ID="btnB" runat="server" Text="2/↓--B/错" Width="120px" OnClick="btnB_Click" AccessKey="2" /><br>
                              <asp:Button ID="btnC" runat="server" Text="3/PgDn--C" Width="120px" OnClick="btnC_Click" AccessKey="3" /><br>
                              <asp:Button ID="btnR" runat="server" Text="Esc--返回" Width="120px" OnClick="btnR_Click" Height="25px" OnClientClick= "return confirm('你确定要返回,重新开始做题吗?') " /><br>
                              <asp:Button ID="btnSubmit" runat="server" Text="NUM--交卷" Width="120px" OnClick="btnSubmit_Click" OnClientClick= "return confirm('你确定要交卷吗?') "  /><br><asp:Button ID="btnDown" runat="server" Text="Enter--下一题" Width="120px" OnClick="btnDown_Click" /><br><asp:Button ID="btnUP" runat="server" Text="+ -- 上一题" Width="120px" OnClick="btnUP_Click" /></fieldset>
                          &nbsp;
                          <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                              <ContentTemplate>
      <table width="100%" border="0" cellspacing="3" cellpadding="3">
            <tr align="center"> 
              <td style="font-size:22px;font-weight:bold; width: 49%;">考生<br>
                答案</td>
              <td style="width: 51%">
                  <asp:Label ID="lblAnswer" runat="server" Height="72px" Width="80px" ForeColor="#C00000"></asp:Label></td>
            </tr>
          </table>
                              </ContentTemplate>
                              <Triggers>
                                  <asp:AsyncPostBackTrigger ControlID="btnA" />
                                  <asp:AsyncPostBackTrigger ControlID="btnB" />
                                  <asp:AsyncPostBackTrigger ControlID="btnC" />
                                  <asp:AsyncPostBackTrigger ControlID="btnDown" />
                                  <asp:AsyncPostBackTrigger ControlID="btnUP" />
                              </Triggers>
                          </asp:UpdatePanel>
          </td>
                    </tr>
                </table>
    是不使用了AJAX出了问题啊   
      

  3.   

     这个是前台代码 我只是想说我用了AJAX 还有加了JS代码在里面   出的错误是我发到空间里面的 运行的时候    过几分钟就会出现上面那个截图的界面 当出现那个界面的时候   按钮就坏掉了 不能按了