public DatabaseConnection()
{
string _constring = System.Configuration.ConfigurationManager.ConnectionStrings["data=PHP_TRAINEE2\\SQLEXPRESS"].ConnectionString;
SqlConnection _con = new SqlConnection(_constring);
}
IN the App_code folder i have added a new class DatabaseConnection and here i have to create a new function insertrecord which inserts the datas in database dbPersonDetail where columns are Name Age Email here and access it in .cs page???
how to implement sqlcommand in this function insertrecord ?? Any help with sample codes???