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

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


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

    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.


  • 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.