Skip to main content

Posts

Showing posts from January 20, 2019

Linq join call on view in mvc

in controller             NLPEntities _Context = new NLPEntities();                         List<ShipmentData> _shipData = new List<ShipmentData>();             var  _shipmentdata = (from sh in _Context.Shipments                                  join inct in _Context.Incoterms on sh.IncotermId equals inct.Id                                  select new                                  {                                      sh.Piece,                   ...

google auto search location in mvc

Places API - make it enable Geolocation API Geocoding API @{     ViewBag.Title = "Home -NLP"; } <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBmH48u5ofTKkriZ3XjTKkaK0eWOadyMJQ&libraries=places&callback=initAutocomplete" async defer></script> <script>     function initAutocomplete() {         autocomplete = new google.maps.places.Autocomplete(             (document.getElementById('PickUpFromAddress')),             { types: ['geocode'] });         autocomplete2 = new google.maps.places.Autocomplete(             (document.getElementById('PickUpToAddress')),             { types: ['geocode'] });         autocomplete2 = new google.maps.places.Autocomplete(            (document.getElementById('Delive...