vs2008用IE调试c#老显示“服务器标记的格式不正确”是怎么回事 请大虾指教 

解决方案 »

  1.   

    aspx代码错误哦 ,不符合xhtml规则
      

  2.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="更新数据._Default" %><!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>
    </head >
    <body>
        <form id="form1" runat="server">
        <div>
        根据输入的title值更新content值:<br/>
        <table style="Width:269px;height:56px">
        <tr>
        <td align ="center">title</td>
        <td align ="center">content</td>
        <td align ="center">edit</td>
        </tr>
        <tr>
        <td>
        <asp:TextBox ID="TextBox1"runat="server"Width="98px"></asp:TextBox>    </td>
        <td>
        <asp:TextBox ID="TextBox2"runat="server"Width=""></asp:TextBox>
        </td>
        <td>
        <asp:Button ID ="Button1"runat="server"OnClick="Button1_click"text="更新"></asp:Button>
        </td>
        </tr>
        </table>
        </div>
        </form>
    </body>
    </html> 
    代码就是这个样子    
      

  3.   

     <asp:TextBox ID="TextBox1"runat="server"Width="98px"> </asp:TextBox>  <asp:TextBox ID="TextBox1"runat="server" Width="98px"> </asp:TextBox> 
    少个空格
      

  4.   

        F5后依旧是“设计器文件生成失败:服务器标记的格式不正确”是不是vs2008里面什么配置错了?