This Code

  • Thread starter Thread starter Great
  • Start date Start date
G

Great

This code is written by Visual studio 2005, language is VB.
It has errors and written after clicking the "Source" tab.
-------------------------------------------------------------------
<%@ Page Explicit="true" Language="VB" Debug="true" %>

<html>

<body>

<form runat="server">

<asp:Label ID="Message" Text="I am flashy" runat="server"

borderstyle="Dashed" BorderColor="Black" Message.Backcolor=Drawing.color.yellow />

</form>

</body>

</html>

The line that begins with "Message" is wrong- Why??

Thanks all

Beginner

--------------------------------
 
Great said:
This code is written by Visual studio 2005, language is VB.

No, not VB.Net. Seems to be Html code that I don't speak. This is a group
about the VB.Net language.


Armin
 
Armin Zingler said:
No, not VB.Net. Seems to be Html code that I don't speak. This is a group
about the VB.Net language.

It seems to be HTML/ASP.NET code.
 
ya'll come back now, ya heah
This code is written by Visual studio 2005, language is VB.
It has errors and written after clicking the "Source" tab.
-------------------------------------------------------------------
<%@ Page Explicit="true" Language="VB" Debug="true" %>
<html>
<body>
<form runat="server">
<asp:Label ID="Message" Text="I am flashy" runat="server"
borderstyle="Dashed" BorderColor="Black"
Message.Backcolor=Drawing.color.yellow />
</form>
</body>
</html>
The line that begins with "Message" is wrong- Why??
Thanks all
Beginner
--------------------------------
Try this:
replace
Message.Backcolor=Drawing.color.yellow
with
Backcolor="Yellow"
 
Hal,

I only saw it when I had read your reply. Would it not be better to replace
completely that Message.Backcolor=Drawing.color.yellow? That is no property
from asp:Label.

I ask it to you because it is very long ago that I was writting in classic
ASP style.

Cor
 
Cor Ligthert said:
Hal,

I only saw it when I had read your reply. Would it not be better to
replace completely that Message.Backcolor=Drawing.color.yellow? That is
no property from asp:Label.

I ask it to you because it is very long ago that I was writting in classic
ASP style.

Cor

This isn't classic ASP - its ASP.NET.
I play around with it using Visual Web Developer 2005 Express.
That is actually what I told him. I told him to replace that
(Message.Backcolor=Drawing.color.yellow) with one that 'would' work -
assuming his intent was to have a yellow backcolor for that label.
Removing it altogether would also work - but the label wouldn't have a
yellow background.
 
Back
Top