R
rockdale
Hi,
I have a page which use a masterpage.
And I put a javascript in this page like below:
<%@ Page Language="C#" MasterPageFile="~/SITE.master"
CodeFile="TEST.aspx.cs" Inherits="TEST_aspx" Title="TEST Javascript" %>
<script type="text/javascript" language="javascript">
DOING SOMETHING WITH OBJECTS THAT EXIST ONLY IN TEST PAGE
BUT NOT IN MASTER PAGE
}
</script>
<asp:content contentplaceholderid="PageContent" runat="Server">
.......
But I hit the error, Error:
Validation (XHTML 1.0 Transitional): Content is not supported outside
'script' or 'asp:content' regions.
It will cause error "Object not found" as these objects do not exist in
master page if I put this javascript into my masterpage.
How to solve this problem?
Thanks
-Rockdale
I tried to put this javascript
I have a page which use a masterpage.
And I put a javascript in this page like below:
<%@ Page Language="C#" MasterPageFile="~/SITE.master"
CodeFile="TEST.aspx.cs" Inherits="TEST_aspx" Title="TEST Javascript" %>
<script type="text/javascript" language="javascript">
DOING SOMETHING WITH OBJECTS THAT EXIST ONLY IN TEST PAGE
BUT NOT IN MASTER PAGE
}
</script>
<asp:content contentplaceholderid="PageContent" runat="Server">
.......
But I hit the error, Error:
Validation (XHTML 1.0 Transitional): Content is not supported outside
'script' or 'asp:content' regions.
It will cause error "Object not found" as these objects do not exist in
master page if I put this javascript into my masterpage.
How to solve this problem?
Thanks
-Rockdale
I tried to put this javascript