|
A critical error has occurred.
Object reference not set to an instance of an object. |
This error come when i use this code in my site
<div id="menu">
<object id="dnnNAV" codebase="NAV" codetype="dotnetnuke/server">
<param name="ProviderName" value="DDRMenuNavigationProvider" />
<param name="IndicateChildren" value="false" />
<param name="ControlOrientation" value="Horizental" />
<param name="CSSControl" value="MenuBarHorizontal"/>
</object>
</div>
can any one explain this why this error come when i write this code.
Complete code is shown here.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Medisave</title>
<link href="skin.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header"><img src="images/header.gif" width="290" height="77" /></div>
<div id="menu">
<object id="dnnNAV" codebase="NAV" codetype="dotnetnuke/server">
<param name="ProviderName" value="DDRMenuNavigationProvider" />
<param name="IndicateChildren" value="false" />
<param name="ControlOrientation" value="Horizental" />
<param name="CSSControl" value="MenuBarHorizontal"/>
</object>
</div>
<div id="banner">
<table width="auto" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="300">
<param name="movie" value="images/Banner Medisave.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="8.0.35.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/Banner Medisave.swf" width="1024" height="300">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="8.0.35.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/do..." alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
</tr>
</table>
</div>
<div id="Container">
<div id="ContentPane" runat="server" ></div>
</div>
<div id="RightPane">
<div id="RightPane" runat="server" ></div>
</div>
<div id="footer">
<object id="dnnLINKS" codebase="LINKS" codetype="dotnetnuke/server">
<param name="CssClass" value="links" />
<param name="Level" value="Root" />
<param name="Separator" value=" - " />
</object>
<p class="txt">All rights are reserved.</p>
</div>
</body>
</html>
css for this is
@charset "utf-8";
body {
background-color: #DDD;
margin: 0px;
font-family: Calibri;
}
#header {
height: 100px;
width: 100%;
background-repeat: repeat;
background-color: #BBD77C;
}
#banner {
background-color: #FFF;
height: auto;
width: 100%;
}
#Container {
background-color: #DDD;
float: left;
height: auto;
width: 85%;
}
#RightPane {
float: right;
height: auto;
width: 14%;
margin-top: 15px;
background-repeat: no-repeat;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #FFF;
border-right-color: #FFF;
border-bottom-color: #FFF;
border-left-color: #FFF;
background-color: #CCC;
border-top-width: 0px;
border-top-style: none;
}
.newsheading {
font-family: Calibri;
font-size: 16px;
font-style: normal;
font-weight: bold;
}
#footer {
background-color: #BBD77C;
height: 100px;
width: 100%;
float: right;
margin-top: 15px;
text-align: right;
}
#Rightpaneheader {
background-image: url(images/Content_header.gif);
background-repeat: repeat;
height: 35px;
width: 100%;
}
#menu {
height: 30px;
width: 100%;
background-color: #BBD77C;
}
#Containerhead {
background-image: url(images/Content_header.gif);
background-repeat: repeat;
height: 35px;
width: 70%;
margin-top: 15px;
margin-left: 15px;
}
#containerText {
height: auto;
width: 95%;
margin-left: 20px;
font-family: Calibri;
}
#ct {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
float: right;
width: 60%;
}
#products {
height: auto;
width: 95%;
margin-top: 10px;
margin-left: 20px;
}
.txt {
font-family: Calibri;
font-size: 13px;
font-style: normal;
font-weight: normal;
}
#news {
height: 25%;
width: 100%;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 4px;
}
.headingtext {
font-family: Calibri;
font-size: 13px;
font-weight: bold;
text-align: left;
}
.Headings {
font-family: Calibri;
font-size: 18px;
font-style: normal;
font-weight: bold;
padding-top: 10px;
}
|