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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top