I'm currently working with ASP.NET 3.5, c#, and visual studio 2010. I have created a master file along with a default page that utilizes this master file. Within the master file, I've included a few asp:contentplaceholders
and added corresponding code to the page using this master. Additionally, I've included JavaScript directly in the content page rather than within the master:
<asp:Content ID="Content6" ContentPlaceHolderID="Mainpage" Runat="Server">
<script src="path1" type="text/javascript"></script>
<script src="path2" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var options = {
//some javascript code here
};
$(".mycssclass").effect(options);
});
</script>
</asp:Content>
However, upon running the website, I encounter the following runtime error within visual studio:
Microsoft JScript runtime error: 'this.node' is null or not an object
It seems to be pointing to a particular function inside the JavaScript code:
this.node.onload=function(){..............//Since I am not well-versed in Java, I'm unsure about this issue
Where could my mistake lie? Why does the site compile successfully but still throws this runtime error?
I attempted placing the JavaScript code in the master file's <head>
, yet encountered the same error. I urgently need assistance, so any experienced individual who can help me pinpoint the correct location to place the code would greatly expedite solving my predicament.