constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Documents and Settings\Administrator\My Documents\Employee.mdb";Persist Security Info=True";
y it is showing compilation error to me????????????? im doing it with VS-08 c#
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1056: Unexpected character '\'
i have created DB also then also it is showing error
Loading
ronak chittoraPosted Jun 25, 2013, 11:58 AM
Jignesh TrivediPosted Jun 25, 2013, 4:12 AM
you can use ""(two time double quote) instead of "(onr time doubkle qoute)
like
constr =
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\Documents and Settings\Administrator\My Documents\Employee.mdb"";Persist Security Info=True";hope this will help you
ronak chittoraPosted Jun 25, 2013, 3:30 AM
Ravi ShekharPosted Jun 25, 2013, 3:29 AM
ronak chittoraPosted Jun 25, 2013, 3:20 AM
Ravi ShekharPosted Jun 25, 2013, 3:16 AM
constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Employee.mdb;Persist Security Info=True;"
Mark it as answer if it helped you.