I have an app on my tablet PC. its written in ASP.net 4.5 using vb.net
When I am not able to connect to the internet I would like it to use the local database.
How is the easiest way to determine if it can conenct to the WEB database on a hosted server or not, then switch to the local connection?
DougP
When I am not able to connect to the internet I would like it to use the local database.
How is the easiest way to determine if it can conenct to the WEB database on a hosted server or not, then switch to the local connection?
Code:
If can connect to web db then
Public gblConnectionString = ConfigurationManager.ConnectionStrings("WEBConnectionString").ConnectionString
Else
'Public gblConnectionString = ConfigurationManager.ConnectionStrings("LocalConnection").ConnectionString
End if
DougP