public static DataSet GetData(string Sqlstat) { string str=@"Data Source=.\SQLEXPRESS;AttachDbFilename="D:\Practice\ASP .Net\WebDb\App_Data\pubs.mdf";Integrated Security=True;User Instance=True"; SqlConnection cn=new SqlConnection(str); SqlDataAdapter da=new SqlDataAdapter(Sqlstat,cn); DataSet ds=new DataSet(); da.Fill(ds); return ds; }
Error 5 Unexpected character '\' D:\Practice\ASP .Net\WebDb\App_Code\DataHelper.cs 21 96 D:\...\WebDb\ Error 7 Only assignment, call, increment, decrement, and new object expressions can be used as a statement D:\Practice\ASP .Net\WebDb\App_Code\DataHelper.cs 21 64 D:\...\WebDb\ Error 10 The name 'ASP' does not exist in the current context D:\Practice\ASP .Net\WebDb\App_Code\DataHelper.cs 21 73 D:\...\WebDb\ Error 17 The name 'pubs' does not exist in the current context D:\Practice\ASP .Net\WebDb\App_Code\DataHelper.cs 21 97 D:\...\WebDb\
string str=@"Data Source=.\SQLEXPRESS;AttachDbFilename=""D:\Practice\ASP .Net\WebDb\App_Data\pubs.mdf"";Integrated Security=True;User Instance=True";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)