asp.net 2003 to 2005 conversion problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This html code snippet did not convert. The error msg is: "</asp:Image> has
no matching start tag in the same template". As you can see, there is a
starting tag. The function GetProperBmpFile is being called in a c#. It is
called many times to decide what color 'light' to display on a datagrid. It
worked great in 2003. Anybody know why is doesn't compile in 2005?

<asp:Image runat="server" Width="25px" Height="25px" ImageURL='<%#
GetProperBmpFile(DataBinder.Eval(Container.DataItem,"AccreditationExp").ToString()) %>' ID="Image1"/>
</asp:Image>
 
This html code snippet did not convert. The error msg is: "</asp:Image> has
no matching start tag in the same template". As you can see, there is a
starting tag. The function GetProperBmpFile is being called in a c#. It is
called many times to decide what color 'light' to display on a datagrid. It
worked great in 2003. Anybody know why is doesn't compile in 2005?

<asp:Image runat="server" Width="25px" Height="25px" ImageURL='<%#
GetProperBmpFile(DataBinder.Eval(Container.DataItem,"AccreditationExp").ToString()) %>' ID="Image1"/>
</asp:Image>

The tag is closed with the "/>" at the end of line 2 in your sample.
 
The tag is closed with the "/>" at the end of line 2 in your sample.

Have AccreditationExp as well in single quotes i.e 'AccreditationExp'.

-
shashank kadge
 
Back
Top