You must Sign In to post a response.
  • Category: ASP.NET

    Error Cannot implicitly convert type 'object' to 'string'

    hello

    string marks=mrk + "/" + tot;
    dr[a] = marks;
    where

    dr is a datarow
    it is giving error as

    Cannot implicitly convert type 'object' to 'string'.
    how to resolve this
  • #342422
    string marks=mrk.ToString() + "/" + tot.ToString();

    If mrk and tot are integers or doubles.

    Regards,
    Joy
    www.joyfulwpf.blogspot.com
    www.silverlightedweb.blogspot.com
    www.joymonscode.blogspot.com


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.