Tree View Navigation Error (Full Version)

All Forums >> [Web Development] >> Expression Web Help



Message


MichaelaDvorak -> Tree View Navigation Error (7/19/2007 13:19:43)

I need help I am getting the following error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

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" />).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Using TreeView.HoverStyle requires Page.Header to be non-null (e.g. <head runat="server" />).]
System.Web.UI.WebControls.TreeView.EnsureRenderSettings() +1112095
System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +59
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


my website address is: www.nebraskasfmtd2.org that is where the message appears. Please help me fix this I am about to pull my hair out. I had it working and now it don't.

Thank you




WantToLearn -> RE: Tree View Navigation Error (7/19/2007 13:46:54)

We need to see the source code of your page in order to try and help fix it.




MichaelaDvorak -> RE: Tree View Navigation Error (7/19/2007 14:11:14)

<asp:TreeView runat="server" id="TreeView1" Width="249px" ForeColor="White" BorderStyle="None" ExpandDepth="0" Height="338px">
<HoverNodeStyle Font-Bold="True" />
<SelectedNodeStyle Font-Bold="True" />
<Nodes>
<asp:treenode NavigateUrl="index.aspx" Text="Home" Value="Home">
</asp:treenode>
<asp:treenode NavigateUrl="Home.aspx" Text="Fire Department Login" Value="Fire Department Login">
</asp:treenode>
<asp:treenode NavigateUrl="Home.aspx" Text="Staff Members Login" Value="Staff Members Login">
</asp:treenode>
<asp:treenode NavigateUrl="Forms/forms.aspx" Text="Forms" Value="Forms">
<asp:treenode NavigateUrl="Forms/Burn and Demolition/burnanddemo_home.aspx" Text="Burn & Demolition" Value="Burn & Demolition">
</asp:treenode>
<asp:treenode NavigateUrl="Forms/Wildland Forms/WWF Forms.aspx" Text="Wildland Forms" Value="Wildland Forms">
</asp:treenode>
<asp:treenode NavigateUrl="Forms/LFT Forms/LFTChecklist.pdf" Text="Live Fire Training Checklist" Value="Live Fire Training Checklist">
</asp:treenode>
<asp:treenode NavigateUrl="Forms/FEMA/FEMAForm75-5A.pdf" Text="FEMA 75-5A" Value="FEMA 75-5A">
</asp:treenode>
<asp:treenode Text="FEMA 75-5" Value="FEMA 75-5">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="News/NewsHome.aspx" Text="News" Value="News">
<asp:treenode NavigateUrl="News/NFPA/nfpa.aspx" Text="NFPA" Value="NFPA">
</asp:treenode>
<asp:treenode NavigateUrl="News/NVFC/nvfc.aspx" Text="NVFC" Value="NVFC">
</asp:treenode>
<asp:treenode NavigateUrl="News/CFSI/cfsi.aspx" Text="CFSI" Value="CFSI">
</asp:treenode>
<asp:treenode NavigateUrl="News/Fire Corp/firecorp.aspx" Text="Fire Corp" Value="Fire Corp">
</asp:treenode>
<asp:treenode NavigateUrl="News/Heart Healthy/hearthealthy.aspx" Text="Heart Healthy" Value="Heart Healthy">
</asp:treenode>
<asp:treenode Text="Trade Region VII" Value="Trade Region VII">
</asp:treenode>
<asp:treenode NavigateUrl="News/Misc Articles/additionalarticles.aspx" Text="Misc Articles" Value="Misc Articles">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="NSFM/SFM Agency/sfmagencylinks.aspx" Text="NSFM" Value="NSFM">
<asp:treenode NavigateUrl="NSFM/SFM Agency/fatest07.pdf" Text="Fire Alarm Test Schedule" Value="Fire Alarm Test Schedule">
</asp:treenode>
<asp:treenode NavigateUrl="NSFM/SFM Agency/fwktest07.pdf" Text="Fire Work Test Schedule" Value="Fire Work Test Schedule">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="Training/CertificationHome.aspx" PopulateOnDemand="True" Text="Certification" Value="Certification">
<asp:treenode Text="Test Sites" Value="Test Sites">
</asp:treenode>
<asp:treenode NavigateUrl="Training/FFI Certification/ffIcertificationinformation.aspx" Text="FFI Certification Information" Value="FFI Certification Information">
<asp:treenode NavigateUrl="Training/FFI Certification/ff1forms.aspx" Text="FFI Certification Forms" Value="FFI Certification Forms">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="Training/FFII Certification/FFIIinformation.aspx" Text="FFII Certification Information" Value="FFII Certification Information">
<asp:treenode Text="FFII Certification Forms" Value="FFII Certification Forms">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="Training/Instructor I Certification/InstructorIInformation.aspx" Text="Instructor I Certification Information" Value="Instructor I Certification Information">
<asp:treenode NavigateUrl="Training/Instructor I Certification/InstructorIForms.aspx" Text="Instructor I Certification Forms" Value="Instructor I Certification Forms">
</asp:treenode>
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="Training/TrainingHome.aspx" Text="Training" Value="Training">
<asp:treenode Text="Training Calendar" Value="Training Calendar">
</asp:treenode>
<asp:treenode Text="Registration" Value="Registration">
</asp:treenode>
<asp:treenode NavigateUrl="Training/Course Descriptions/Course Description Home.aspx" Text="Course Description" Value="Course Description">
</asp:treenode>
<asp:treenode NavigateUrl="NFA DD/DD2008/2008NFADD.aspx" Text="NFA DD Course" Value="NFA DD Course">
</asp:treenode>
<asp:treenode NavigateUrl="Training/Web Base Training/Web Based Training/webbasetrnghome.aspx" Text="Web Base Training" Value="Web Base Training">
</asp:treenode>
</asp:treenode>
<asp:treenode NavigateUrl="Comments/feedback.aspx" Text="Comments" Value="Comments">
</asp:treenode>
<asp:treenode NavigateUrl="Upcoming Events/UpcomingEvents.aspx" Text="Upcoming Events" Value="Upcoming Events">
</asp:treenode>
<asp:treenode NavigateUrl="Grants Scholarships/homelandsecurityhome.aspx" Text="Grants" Value="Grants">
</asp:treenode>
<asp:treenode NavigateUrl="Grants Scholarships/Scholarships_home.aspx" Text="Scholarships" Value="Scholarships">
</asp:treenode>
</Nodes>
<RootNodeStyle ForeColor="White" Font-Bold="True" />
<LeafNodeStyle NodeSpacing="0px" ForeColor="White" Font-Bold="True" />
<NodeStyle Font-Bold="True" />
</asp:TreeView>




MichaelaDvorak -> RE: Tree View Navigation Error (7/30/2007 14:00:14)

I still need help with this issue. Can anyone help me I posted the code and the error message.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.882813E-02