M
Morris Neuman
Hi,
I am using Expression Web 2 to develop my website.
I am trying to set the HoverStyle for my TreeView on my downloads.aspx page.
I get error
"Using TreeView.HoverStyle requires Page.Header to be non-null (e.g. <head
runat="server" />).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Using
TreeView.HoverStyle requires Page.Header to be non-null (e.g. <head
runat="server" />)."
I have used treeview and don't get error if I don't use the HoverStyle.
What do I need to add and why?
My page details are as follows:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
</head>
<body id="page6">
<form id="form1" runat="server">
<div id="main">
<!-- header -->
<div id="header">
<p>www.speechsoft.com</p>
<ul id="navi">
<li><a href="aboutSS-contacts.html">About Us</a></li>
<li><a href="aboutSS-contacts.html">Contact</a></li>
<!--<li><a href="#">sIGN iN</a></li>-->
<!--<li><a href="#">sEARCH</a></li>-->
<!--<li><a href="#">HELP</a></li>-->
<!--<li><a href="#">faq</a></li>-->
</ul>
<a href="index.html"><img src="images/logo.gif" id="logo" alt="" /></a>
</div>
<!-- content -->
<div id="content">
<div class="wrapper">
<div id="left-column">
<h2><span>Downloads</span></h2>
<ul class="list-1">
<li>
<h6>CALLMaster</h6>
<asp:TreeView id="TreeView1" runat="server">
<HoverNodeStyle Font-Bold="False" Font-Underline="True" />
<Nodes>
<asp:treenode Expanded="True" Text="Software" Value="Software">
</asp:treenode>
<asp:treenode ShowCheckBox="False" Text="Document" Value="Document">
<asp:treenode NavigateUrl="Documents/CALLMaster-Brochure.pdf"
Text="CALLMaster Brochure" Value="CALLMaster Brochure">
</asp:treenode>
</asp:treenode>
</Nodes>
</asp:TreeView>
</li>
<!--<li class="extra">
<h5>12.12.2006 - Donec accumsan</h5>
<p>Lorem ipsum dolor sit amet, consectet uer adipiscing elit.
Mauris fermen tum dictum magna. Aenean </p>
</li>-->
</ul>
<a href="#" class="link-2"><span><span>More
solutions</span></span></a>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
I am using Expression Web 2 to develop my website.
I am trying to set the HoverStyle for my TreeView on my downloads.aspx page.
I get error
"Using TreeView.HoverStyle requires Page.Header to be non-null (e.g. <head
runat="server" />).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Using
TreeView.HoverStyle requires Page.Header to be non-null (e.g. <head
runat="server" />)."
I have used treeview and don't get error if I don't use the HoverStyle.
What do I need to add and why?
My page details are as follows:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
</head>
<body id="page6">
<form id="form1" runat="server">
<div id="main">
<!-- header -->
<div id="header">
<p>www.speechsoft.com</p>
<ul id="navi">
<li><a href="aboutSS-contacts.html">About Us</a></li>
<li><a href="aboutSS-contacts.html">Contact</a></li>
<!--<li><a href="#">sIGN iN</a></li>-->
<!--<li><a href="#">sEARCH</a></li>-->
<!--<li><a href="#">HELP</a></li>-->
<!--<li><a href="#">faq</a></li>-->
</ul>
<a href="index.html"><img src="images/logo.gif" id="logo" alt="" /></a>
</div>
<!-- content -->
<div id="content">
<div class="wrapper">
<div id="left-column">
<h2><span>Downloads</span></h2>
<ul class="list-1">
<li>
<h6>CALLMaster</h6>
<asp:TreeView id="TreeView1" runat="server">
<HoverNodeStyle Font-Bold="False" Font-Underline="True" />
<Nodes>
<asp:treenode Expanded="True" Text="Software" Value="Software">
</asp:treenode>
<asp:treenode ShowCheckBox="False" Text="Document" Value="Document">
<asp:treenode NavigateUrl="Documents/CALLMaster-Brochure.pdf"
Text="CALLMaster Brochure" Value="CALLMaster Brochure">
</asp:treenode>
</asp:treenode>
</Nodes>
</asp:TreeView>
</li>
<!--<li class="extra">
<h5>12.12.2006 - Donec accumsan</h5>
<p>Lorem ipsum dolor sit amet, consectet uer adipiscing elit.
Mauris fermen tum dictum magna. Aenean </p>
</li>-->
</ul>
<a href="#" class="link-2"><span><span>More
solutions</span></span></a>
</div>
</div>
</div>
</div>
</form>
</body>
</html>