这类错误如何处理?

解决方案 »

  1.   

    是不是scriptmanager放的位置的问题?
      

  2.   

    贴点代码出来看看,估计是你的ASP.NET AJAX用的有些问题。
      

  3.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default"
        AsyncTimeout="180000" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="index.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="newbig">
            <div class="log">
                <div style="float: left; height: 89px; margin-left: 150px; _margin-left: 70px; margin-right: 30px;">
                    <img alt="" src="images/05.gif" /></div>
                <div style="float: left; height: 89px; padding-top: 15px;">
                </div>
            </div>
            <div style="margin-left: -10px; _margin-left: 100px; +margin-left: 180px; _margin-top: -30">
                <ul style="margin-top: -10px; height: 20px;">
                    <li runat="server" id="link" style="list-style-type: none; margin-top: 0px;"></li>
                </ul>
            </div>
            <div style="width: 300px; height: 480px; margin-top: -40px; _margin-top: -30px; +margin-top: -5px;
                margin-left: 2px;">
                <div style="float: left; width: 235px; height: 439px;">
                    <div style="width: 220px; height: 50px;">
                        <img alt="" src="images/07.gif" /></div>
                    <div style="width: 40px; height: 40px; margin-top: -50px; _margin-top: -360px; margin-left: 20px;">
                        <img alt="" src="images/19.gif" /></div>
                    <div style="margin-top: -30px; margin-left: 70px;">
                        <img alt="" src="images/10.gif" /></div>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <div style="height: 38px; margin-left: 8px; margin-top: 13px; _margin-top: 10px;
                                font-size: 14px; line-height: 170%; color: #666366;" id="userinfo" runat="server">
                                <%-- 用户信息--%>
                            </div>
                            <div style="width: 60px; height: 60px; margin-top: 130px; _margin-top: 20px; margin-left: 5px;">
                                <img alt="" src="images/04.gif" />
                                <div style="width: 30px; height: 80px; margin-top: 0px; margin-left: 15px; font-family: 华文宋体;
                                    font-size: 18px; color: #666366;">
                                    密码修改</div>
                                <div style="width: 200px; height: 100px; font-size: 15px; margin-left: 55px; margin-top: -90px;
                                    font-family: 华文宋体; _margin-top: -190px; +margin-top: -90px; color: #666366;">
                                    <asp:Label ID="Label1" runat="server" Text="旧密码:"></asp:Label>
                                    <asp:TextBox ID="TextBox1" runat="server" Width="78px" TextMode="Password"></asp:TextBox>
                                    <div style="margin-top: 12px; font-family: 华文宋体; color: #666366;">
                                        <asp:Label ID="Label2" runat="server" Text="新密码:"></asp:Label>
                                        <asp:TextBox ID="TextBox2" runat="server" Width="78px" TextMode="Password"></asp:TextBox>
                                    </div>
                                    <div class="password">
                                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/20.gif" onmouseout="this.src='images/20.gif'"
                                            onmouseover="this.src='images/20_1.gif'" OnClick="ImageButton1_Click" /></div>
                                </div>
                                <div class="leftBottom">
                                </div>
                                <div>
                                    <ul style="list-style-type: none;">
                                        <li style="margin-left: 20px; margin-top: -87px; _margin-top: -87px;"></li>
                                        <li style="margin-left: 120px; margin-top: -30px; _margin-top: -35px; +margin-top: -35px;">
                                        </li>
                                    </ul>
                                    <div style="width: 100px; height: 30px; margin-top: -5px; margin-left: 6px; margin-bottom: 15px;
                                        font-family: 华文宋体; font-size: 16px; color: blue;">
                                        提示信息:</div>
                                    <div style="width: 220px; height: 50px; margin-top: -13px; margin-left: 10px; font-size: 12px;
                                        color: #666366;">
                                        <asp:Label ID="Label3" runat="server" Text=" 挂满两个小时积一分,没挂满不积分<br/>" Font-Size="10pt"></asp:Label>
                                        <asp:Label ID="lbl_outputtime" runat="server" Text=""></asp:Label>
                                        <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick1">
                                        </asp:Timer>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div style="float: left; width: 600px; height: 439px; margin-left: 235px; _margin-left: 120px;
                    margin-top: -440px; _margin-top: -470px;">
                    <div class="righ">
                        <div class="rightmess">
                            <ul style="list-style-type: none;">
                                <li style="padding-top: 20px; margin-left: 20px; color: #666366;">添加说明:</li>
      

  4.   

    接上..
                                <li style="margin-left: 50px; margin-top: -10px; _margin-top: -14px; color: #666366;">
                                    <br />
                                    两个关键词之间用"/"分隔&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;例如:成都搬家/成都蚂蚁搬家</li>
                                <li style="margin-left: 50px; margin-top: 15px; _margin-top: 8px; +margin-top: 10px;
                                    color: #666366;">其中后个关键字要包含前个关键字&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;两个关键词均不超过18个字符</li>
                                <li class="words"></li>
                                <li style="margin-top: -40px; _margin-top: -40px; margin-left: 20px; font-family: 华文宋体;
                                    font-size: 16px; letter-spacing: 2px; color: Blue;">输入关键字:<asp:TextBox ID="TextBox3"
                                        runat="server" Width="360px"></asp:TextBox></li>
                                <li style="margin-top: -27px; margin-left: 500px;">
                                    <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="images/index1_86.gif"
                                        onmouseout="this.src='images/index1_87.gif'" onmouseover="this.src='images/index1_86.gif'"
                                        OnClick="ImageButton4_Click" />
                                </li>
                            </ul>
                        </div>
                        <div>
                            <div style="margin-top: 70px; _margin-top: 20px; margin-left: 15px;">
                                <img alt="" src="images/11.gif" />
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                                    OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
                                    Width="596px" OnRowDataBound="GridView1_RowDataBound" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                                    OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Font-Size="18px">
                                    <FooterStyle Font-Size="12px" />
                                    <RowStyle HorizontalAlign="Center" VerticalAlign="Bottom" />
                                    <Columns>
                                        <asp:BoundField DataField="username" HeaderText="用户名" ReadOnly="True" HeaderStyle-Height="20px">
                                            <HeaderStyle Width="80px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="80px" Height="20px" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="关键字1" HeaderStyle-Height="20px">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("word1") %>' Width="80px"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("word1").ToString().Length>=5?Eval("word1").ToString().Substring(0,4):Eval("word1").ToString() %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Width="80px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="80px" Height="20px" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="关键字2" HeaderStyle-Height="20px">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("word2") %>' Width="80px"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("word2").ToString().Length>=5?Eval("word2").ToString().Substring(0,4):Eval("word2").ToString() %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Width="80px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="80px" Height="20px" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="datetime" HeaderText="添加时间" ReadOnly="True" HeaderStyle-Height="20px">
                                            <HeaderStyle Width="60px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="140px" Height="20px" Font-Size="14px" />
                                        </asp:BoundField>
                                        <asp:CommandField HeaderText="编辑" ShowEditButton="True" HeaderStyle-Height="20px">
                                            <HeaderStyle Width="30px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="80px" Height="20px" />
                                        </asp:CommandField>
                                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" HeaderStyle-Height="20px">
                                            <HeaderStyle Width="30px" BackColor="#E6F7FA" BorderColor="#96BDCD" BorderStyle="Solid"
                                                BorderWidth="3px" Height="20px" />
                                            <ItemStyle Width="60px" Height="20px" />
                                        </asp:CommandField>
                                    </Columns>
                                    <HeaderStyle Font-Size="14px" ForeColor="#5e94e9" HorizontalAlign="Center" VerticalAlign="Bottom" />
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
    </body>
    </html>
      

  5.   

    呃.我直在CHTMLVIEW中把错误屏蔽了..- -!!
      

  6.   


    JS可以解决这类问题,在程序中把JS嵌进网页里面就行了!