I'm checking if the internet is available or not by pinging my server. This method is called in onClientClicking event of the button.
If not connected to the internet I want to prevent the postback.
It displays 'Not connected to internet' message but after the user clicks 'OK' , it does a postback.
If not connected to the internet I want to prevent the postback.
It displays 'Not connected to internet' message but after the user clicks 'OK' , it does a postback.
function checkinternetOnButtonClick(button, args) { $.ajax({ url: 'http://www.MyDomainName.com', success: function() { }, error: function() { alert('No internet connection available on button click!'); args.set_cancel(true); return false; } }); }<telerik:RadButton ID="btnBulkUpdate" runat="server" Text="Bulk Update" Width="150px" Font-Size="Medium" OnClientClicking = "checkinternetOnButtonClick" />