2的n次方是多少:为什么总是说我的script在<asp:Content >外,不被支持

来源:百度文库 编辑:中科新闻网 时间:2024/05/10 20:43:51
代码如下,请各位同学帮忙看看

<%@ Page Language="VB" MasterPageFile="~/MyMasterPage.master" AutoEventWireup="false" CodeFile="Main.aspx.vb" Inherits="Default3" %>

<!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>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"runat="server" >

<form id="form1" action='Main.aspx'>
...................
</form>
</asp:Content>
</body>
</html>
总是提示’script在<asp:Content >外,不被支持’,bulid不了.是不是我的位置放的有问题?
在一个form里可以有两个runat吗?
还有就是,改到form下,还是不好用.

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"runat="server" >
这个必须放在Form里
而且,你的那个Form也应该必须是runat="server"