Server Error in '/' Application.

Using the Title property of Page requires a header control on the page. (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 the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).

Source Error:


Line 41:             lblPageContents.Text = HttpUtility.HtmlDecode(cpCon.LinkContents)
Line 42:             If cpCon.WindowTitle IsNot Nothing Then
Line 43:                 Page.Title = cpCon.WindowTitle
Line 44:             End If
Line 45:             'If cpCon.MetaKeywords IsNot Nothing Then

Source File: D:\WEBSITES\healthcare-ssc.in\httpdocs\Show-Page.aspx.vb    Line: 43

Stack Trace:


[InvalidOperationException: Using the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).]
   System.Web.UI.Page.set_Title(String value) +11872108
   Show_Page.LoadPageContents(Int32 PageID) in D:\WEBSITES\healthcare-ssc.in\httpdocs\Show-Page.aspx.vb:43
   Show_Page.Page_Load(Object sender, EventArgs e) in D:\WEBSITES\healthcare-ssc.in\httpdocs\Show-Page.aspx.vb:14
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0