In Focus

Forums - C# Corner

Forum guidelines
Sheikh parvaz

Sheikh parvaz

  • 1.4k
  • 141
  • 50.4k

Input string was not in a correct format.

Nov 25 2012 5:15 AM
the below code has some issue with conversion, kidly help.

ticketid = Convert.ToInt32(Request.QueryString["TicketID"].ToString());
            string countresolved = "Select Count(CurrentStatus) From Ticket Where CurrentStatus='Resolved' and TicketId = ticketid";
            Int32.TryParse(countresolved, out countresolvedint);
            countresolvedint = Convert.ToInt32(countresolved);
            if (Convert.ToInt32(countresolved)==1)
                lblIssueResolved.Visible = true;
                btnIssueResolved.Visible = false;

Answers (1)


Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now