eRad
11-22-2004, 02:54 PM
Say i have an ASP.NET dropdownlist sourced from a Departments table, and i bind the textfield to be Department, and the valuefield to be ID.
I want the text to actually show both the ID and the department name. Aside from just appending them together in the database, i found a solution here http://www.dotnetjunkies.com/Article/D7108B11-7BB6-4196-8D88-D78A0AE5092B.dcik
i used the method of creating a new field within the SQL.. however when i tried it, i got an error: "Exception Details: System.InvalidOperationException: The provider could not determine the Double value. For example, the row was just created, the default for the Double column was not available, and the consumer had not yet set a new Double value."
here is my string:
SELECT ID,ID + ' - ' + Department AS Cost_Centre FROM Departments
any ideas?
I want the text to actually show both the ID and the department name. Aside from just appending them together in the database, i found a solution here http://www.dotnetjunkies.com/Article/D7108B11-7BB6-4196-8D88-D78A0AE5092B.dcik
i used the method of creating a new field within the SQL.. however when i tried it, i got an error: "Exception Details: System.InvalidOperationException: The provider could not determine the Double value. For example, the row was just created, the default for the Double column was not available, and the consumer had not yet set a new Double value."
here is my string:
SELECT ID,ID + ' - ' + Department AS Cost_Centre FROM Departments
any ideas?