Can't See the Problem

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I am getting the following error and I cannot see what is wrong with the
hyperlink string?

What am I missing?

====================================
Input string was not in a correct format.
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.FormatException: Input string was not in a correct
format.

Source Error:

Line 82: <tr bgcolor="lightcyan">
Line 83: <td id="myLink" runat="server">
Line 84: <asp:HyperLink id="X1"
runat="server" NavigateUrl= '<%# "unitevaljudge.asp?id=" +
DataBinder.Eval(Container.DataItem,"ID") + "&evalid=" + Session("UnitID")%>'
Text= "Evaluate" ></asp:HyperLink>
Line 85: </td>
Line 86: <td>

===============================
 
My own stupidity! The value of DataBinder.Eval(Container.DataItem,"ID") is
an integer, not a string so I just needed to cast it to a string.

Wayne
 
Back
Top