[Mono-list] Problem with color property in VB.NET aspx control

JE M. jmbltx1 at hotmail.com
Fri Jun 22 15:48:10 EDT 2007

I ran a small aspx that I developed with ASP.NET Web Matrix, and when I 
tried to run it in my Mozilla Firefox browser, I get a message that says:
Description: Error parsing a resource required to service this request.
Review your source file and modify it to fix this error.

Error message:

Color Blue is not a valid color.
     Line: 19
Source Error:
     <form runat="server">
         <asp:Label id="lblTitulo" style="Z-INDEX: 100; LEFT: 269px;
POSITION: absolute; TOP: 98px" runat="server" forecolor="Blue"
font-size="X-Large" font-bold="True">Welcome
         to My Page</asp:Label>
         <!-- Insert content here -->

So I deleted the 'forecolor="Blue"' property and it worked. I thought
that by adding the <%@ import Namespace="System.Web" %> and <%@ import
Namespace="System.Drawing.Color" %> libraries to the aspx file it
>should work, but it didn't. Can someone please tell me what I am missing?

Who's that on the Red Carpet? Play & win glamorous prizes. 

More information about the Mono-list mailing list