Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

While working with ASP.NET, how would I resolve the following error: "The best overloaded method match for 'System.Convert.ToString(object, System.IFormatProvider)' has some invalid arguments"?

Do you know how I can resolve the following error?

The best overloaded method match for 'System.Convert.ToString(object, System.IFormatProvider)' has some invalid arguments


</EditItemTemplate>                                          
<ItemTemplate>
<asp:Label Text='<%# DisplayDateTime(Eval("dtCreated")) %>' runat="server"></asp:Label>
</ItemTemplate>


public string DisplayDateTime(object value)
{
  if (value== null)
  {
     lblStatus.Text = "Date is null";
  }
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial