Can I save my data (after inputs from client computer) into my server database while there's a internet connection and when there's no internet connection the data will be saved on client computer and when the internet connection online again, the data will be sent to my server database ( or using a button click )
Is that possible?
I'm using visual studio c# thanks
SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["conn"].ConnectionString);
i'm planning
try{
con.Open()
//save to database
}
catch
{
//save to local
}
while it was risky if i get error, it will moved to catch too
and is that possible to make session / cookies last forever?