i have an free web host on aspspider.com and i have made an page with asp.net and a sql database under root\Database\db1.mdf. the code on my page is in c#.
i have an code for db acces but it doesent work
string connectString = @"Data Source=~\root\Database ;Initial Catalog=DB1";
System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection(connectString);
con.Open();
what is wrong with this code please help