View Single Post
  #1 (permalink)  
Old April 21st, 2011, 12:24 PM
arodrigu12 arodrigu12 is offline
Registered User
Points: 35, Level: 1
Points: 35, Level: 1 Points: 35, Level: 1 Points: 35, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 14 Exercise 3 Solution pg 747

The following code, although it works, produces the error below:

<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# "PictureDetails.aspx?Id=" + Eval("Id").ToString() %>'>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageUrl") %>' ToolTip='<%# Eval("ToolTip") %>' />
</asp:HyperLink>
<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
</li>

Any suggestions on how to get rid of the this error message??

Error 1 Overload resolution failed because no accessible 'ToString' can be called with these arguments:
'Public Shared Function ToString(value As Long, toBase As Integer) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Long, toBase As Integer) As String': Value of type 'System.Globalization.CultureInfo' cannot be converted to 'Integer'.
'Public Shared Function ToString(value As Integer, toBase As Integer) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Integer, toBase As Integer) As String': Value of type 'System.Globalization.CultureInfo' cannot be converted to 'Integer'.
'Public Shared Function ToString(value As Short, toBase As Integer) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Short, toBase As Integer) As String': Value of type 'System.Globalization.CultureInfo' cannot be converted to 'Integer'.
'Public Shared Function ToString(value As Byte, toBase As Integer) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Byte, toBase As Integer) As String': Value of type 'System.Globalization.CultureInfo' cannot be converted to 'Integer'.
'Public Shared Function ToString(value As String, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Date, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Decimal, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Double, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Single, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As ULong, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Long, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As UInteger, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Integer, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As UShort, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Short, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Byte, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As SByte, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Char, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Boolean, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'.
'Public Shared Function ToString(value As Object, provider As System.IFormatProvider) As String': Argument not specified for parameter 'value'. C:\BegASPNETVB\Site\PhotoAlbums\Default.aspx 1 1 C:\BegASPNETVB\Site\