Use Local internet after VPN connected

Use Local internet after VPN connected


 I faced issue with my local internet connection after I connected VPN. Then I my friend helped me to resolve issue with below steps. 

After followed below steps, yes I can use my internet.

Steps

1. Press the Windows logo key+R to open the Run box.
2. Type ncpa.cpl in the Run box, and then press Enter to open Network Connections.
3. Right-click the VPN connection, and then click Properties.
4. Click the Networking tab in the VPN connection properties dialog box, select Internet Protocol Version 6 (TCP/IPv6), and then click Properties.
5. Click Advanced… in the Protocol properties box.
6. Click the IP Settings tab in the Advanced TCP/IP Settings box.
7. To disable the default gateway, clear the Use default gateway on remote network check box. Or, to enable the default gateway, 8. select the Use default gateway on remote network check box.
9. Click OK to close the Advanced TCP/IP Settings dialog box.
10. Click OK to close the Protocol properties dialog box.
11. Select Internet Protocol Version 4 (TCP/IPv4), click Properties, and then repeat step 5 through step 9 to change the default gateway setting for IPv4.
12. Click OK to close the VPN connection properties dialog box. 


Hope this will help you and save your time.

Enjoy !!!

:)

jquery datatable global search on keypress of enter key instead of any key keypress

datatable global search on keypress of enter key instead of any key keypress


We can use search feature by pressing "enter key" instead of key press search...

We need to add below code,


$('#myTable_filter input').unbind();
    $('#myTable_filter input').bind('keyup'function (e) {
        if (e.keyCode == 13) {
            table.search(this.value).draw();
        }
    });

Full code of bind datatable

var table = "";
var apisitename = 'http://localhost/DemoApp/api/'; 

$(document).ready(function () {
     
    table = $("#myTable").DataTable({
        "processing": true,
        "serverSide": true,
        "searching": true,
        "ordering": true,
        "paging": true,
        "responsive": true,
        "ajax": {
            "url": apisitename + "CountriesList",
            "type": "get",
            "datatype": "json" 
        },
        "columns": [
            { "data": "Name", "name": "Name"},
            {
                data: null,
                orderable: false,
                width: 100,
                render: function (data, type, row) { 
                    return "<a href='country/detail/?id=" + data.ID + "' class='btn btn-primary btn-small-x fa fa-search'></a>";
                }
            }
        ]
    });

    $('#myTable_filter input').unbind();
    $('#myTable_filter input').bind('keyup', function (e) {
        if (e.keyCode == 13) {
            table.search(this.value).draw();
        }
    });

});


HTML 

 <table id="myTable" class="display responsive nowrap" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th>Country Name</th>
                        <th>Action</th>
                    </tr>
                </thead>
            </table>

Hope this will help you and save your time.

Enjoy !!!

:)