I am a beginner that used to do VB.NET and now trying to learn C#. I've been trying to set up few forms where I can insert data into sql table, but every time I try to run the ASPX page it says
"There were errors building the project. Do you want to continue with the preview anyway?"
When I view the error list I get two:
- Warning 1: Generation of the designer file for Track.aspx failed: Error HRESULT E_FAIL has been returned from a call to a COM component.
- Error 2: Unrecognized escape sequence
The Error is pointing to the server part of the connection which is this:
Data Source=iskra-laptop\SQLEXPRESS; (the S is highlighted with red)
I am not sure on how to fix this, any help is appreciated. Here are both codes, the form and the C# files,
p.s.: I am aware of SqlParameter, and I will use that once I fix this issue :)
UPDATE: I fixed the connection where I was missing an extra \, but the first error is still there. Now, my variables are not being recognized, it says it does not exist in the current context, and Yes, I double checked the id names, they are correct.