treeview error message

Last post 03-05-2009 9:37 AM by Curt_C. 1 replies.

Sort Posts:

  • treeview error message

    03-05-2009, 9:17 AM
    • Member
      point Member
    • linus1884
    • Member since 03-05-2009, 2:09 PM
    • Posts 1

    Parser Error body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

    Hi 

     

    am wondering if anyone can help with this error message

     

    Thanks

     

    Server Error in '/' Application.


    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Cannot create an object of type 'Microsoft.Web.UI.WebControls.CssCollection' from its string representation 'font-family: Verdana, Arial, Helvetica, sans-serif;' for the 'DefaultStyle' property.

    Source Error:

    Line 131:		<div id="divInternal" visible="false" runat="server">
    Line 132:			Please select a page to link to:
    Line 133:			  <p><br><ie:TreeView DefaultStyle="font-family: Verdana, Arial, Helvetica, sans-serif;" id="TreeView1" runat="server" /></p>			 	  			 
    Line 134:			  <p><asp:Button ID="btnSelectInternal" Text="Next Step >>" OnClick="Select_Internal" runat="server"  /></p>
    Line 135:		</div>

    Source File: /edit/link.aspx    Line: 133


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
     
  • Re: treeview error message

    03-05-2009, 9:37 AM
    • All-Star
      48,902 point All-Star
    • Curt_C
    • Member since 07-23-2003, 4:27 PM
    • Plover, WI - USA
    • Posts 5,324
    • Moderator
      TrustedFriends-MVPs

    try putting your styles in a CSS and putting that CssClass name in there instead.

    Blatant Self-Promotion: Book Released - ASP.Net CMS Development
Page 1 of 1 (2 items)