使用母版页时内容页如何使用css和javascript!
终于在网上找到了解决方案:
在母版页的<head></head>中添加一个
<asp:contentplaceholder id="header" runat="server">
</asp:contentplaceholder>
</asp:contentplaceholder>
然后在内容页中添加一个Content,如下:
<asp:Content ID="Content1" ContentPlaceHolderID="header" Runat="Server">
<link href="css.css" type="text/css" />
<script language="javascript" type="text/javascript">
alert("哈哈");
</script>
</asp:Content>
<link href="css.css" type="text/css" />
<script language="javascript" type="text/javascript">
alert("哈哈");
</script>
</asp:Content>
Ok,搞定!