Here is the table setup I have:
int | Design_1
0 | Design_A
1 | Design_B
2 | Design_C
Here is my code for the form:
var design = (from d in BikePartsDataContext1.handlebars
where d.@int == "0"
select d.Design_1);
this.textBox1.Text = design.ToString();
What I am trying to do is make the textBox1 text have the value of the Design_1 value from the row where @int is 0.
All works fine until I get this as the text value for textBox1:
SELECT [t0].[Design 1] FROM [dbo].[handlebars] AS [t0] WHERE [t0].[int] = @p0