To check if jQuery is loaded you can use the following snippet.
Sample jQuery
if (!jQuery) { //do something, jQuery is not loaded }
To check if jQuery is loaded you can use the following snippet.
if (!jQuery) { //do something, jQuery is not loaded }
To check if internet is avaiable in C# and VB.NET you can use the following snippet.
private static bool IsInternetAvaiable(string url) { try { using (var client = new WebClient()) using (var stream = client.OpenRead(url)) { return true; } } catch (Exception ex) { //catch and handle the exception your way return false; } }
Private Shared Function IsInternetAvaiable(ByVal url As String) As Boolean Try Dim client As var = New WebClient Dim stream As var = client.OpenRead(url) Return true Catch ex As Exception 'catch and handle the exception your way Return false End Try End Function