This project has moved and is read-only. For the latest updates, please go here.

ToString() Kill

Topics: Developer Forum, Project Management Forum, User Forum
Jul 8, 2010 at 8:07 PM
Edited Jul 8, 2010 at 8:09 PM
I've the following problem: when I using the query query.Text = "SELECT HOCOD As value, (HOCOD.ToString() + ' - ' + HODESHOUR) As description FROM RetHoEmp" query.ExecuteDataTable() HOCOD is a int HODESHOUR is a string the aspnet is killed. somebody know's why?
Sep 10, 2012 at 8:43 AM

Sorry to revive such an old thread.

For the record: I can't reproduce this issue. Using the demo application this query runs just fine:

SELECT	e.EmployeeID.ToString() + ' - ' + e.FirstName
FROM	Employees e

If someone has a repro, I'm happy to take a look.