母版页里加载两次body标签

最近做开发的时候,遇到母版页里加载两次body标签,

查看文件的源文件是:

<!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><title>
 无标题页
</title></head>
<body>
    <form name="form1" method="post" action="/admin/index.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGQMHPnZFFbpVNerzDbS3zEGz5EfaA==" />
</div>

    <div>
   
    </div>
    </form>
</body>
< ml>


<!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>
<link type="text/css" rel="stylesheet" href="/Style/helpCenter.css" media="all" />
<script type="text/javascript" src="/Script/Common.JQuery.js"></script>
<script type="text/javascript" src="/Script/Common.Load_Help.js">

</script>
    <title>总后台管理页面</title>
</head>
<body>
    <form name="aspnetForm" method="post" action="/admin/index.aspx" id="aspnetForm">
<div>

这里出现的问题是因为我在代码页面里写了一段Server.Execute("checklogin.aspx");代码  把这个去掉就可以了。


   本人博客的文章大部分来自网络转载,因为时间的关系,没有写明转载出处和作者。所以在些郑重的说明:文章只限交流,版权归作者。谢谢

原文地址:https://www.cnblogs.com/wzg0319/p/1609372.html