Here the way to find the passing '&' symbol in URL. Basically in URl '&' symbol has treated like separator in URL, Some situation we need to pass the our data with
‘&’ symbol, in such case if you pass directly it will split the data with using & symbol, you would get the desired result you need.

Here am illustrating with one example...
You have a name like..&vnam=John&jeorge
If you pass the vnam in URL, it will treat '&' symbol as a delimiter or separator
In such cases we have to use common function called URL encode.
For using this function you need use import namespace as

Import System.web;

   Dim str As String = HttpUtility.UrlEncode("John&jeorge")
&vnam=str

Now the & sysmbol has been replaced %20, By using this method you don’t get any errors by passing ‘&’ symbol in URL. In another side  decode the url using
str = HttpUtility.UrlDecode(str)
Also we can encode the object into specific standard format like the below code. When decode we must use the same format to decode the object

        Dim str As String = HttpUtility.UrlEncode("John&jeorge",System.Text.Encoding.GetEncoding("ISO-8859-15")))


ISO-8859-15:
 This character set is used throughout The Americas, Western Europe, Oceania, and much of Africa. It is also commonly used in most standard romanizations of East-Asian languages.Each character is encoded as a single eight-bit code value.

I hope you like this article …keep reading.


Inline style:
Inline styles are CSS styles that are applied to one element using the style attribute. This style are applied only for this particular paragraph, this styles did not affect remaining content.
ex:
<p style="background:#ccc; color:#fff; border: solid black 1px;">

Apply style directly to the element..

Cascading Style Sheets:
By declaring cascading style its gives the consistency look to your page. For an example, In your page, if you are using H4 element in many places.so Here you simply declare that all H4 headlines are blue color. Put the following code in the <head> of your HTML. All the h4 tag content are display in blue color.
ex:
<style type="text/css">
 h4 { color: #0000ff; }
 </style>


Embedded style sheet:
By applying embeded style look your page become more standard. Its easy way to handle the css in separate file with the extension .css. Once you created such file, then you can easily link the file with your page.so general page contains only html tag.
This you can save separately css file and link the file to the code..
Ex:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>


Hi..
In this article going to write with help of google API..Here we can find the distance between two places..

Google provide many API service as free for developers. In worldwide we can easily find the distance between two places and also time needed to reach place, everything is calculated by using google map…
It’s also very interesting find our place in google map with logo..
Let us illustrate the coding with some sample pictures below show the exact difference between two places…
  CODE:
Here I gave the complete code to easy to add in anyone project..
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Google Maps API v3 Example: Distance Matrix</title>

    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>

    <style type="text/css">
        body
        {
            margin: 20px;
            font-family: courier, sans-serif;
            font-size: 12px;
        }
        #map
        {
            height: 480px;
            width: 640px;
            border: solid thin #333;
            margin-top: 20px;
        }
    </style>

    <script type="text/javascript">

      var map;
      var geocoder;
      var bounds = new google.maps.LatLngBounds();
      var markersArray = [];
      
      var destinationIcon = "https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=D|FF0000|000000";
      var originIcon = "https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=O|FFFF00|000000";

      function initialize() {
        var opts = {
          center: new google.maps.LatLng(55.53, 9.4),
          zoom: 10,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        map = new google.maps.Map(document.getElementById('map'), opts);
        geocoder = new google.maps.Geocoder();
      }
   
      function calculateDistances() {
      //*****Here we are giving the place or city name directly *****//
//***************www.dotnetcode.in******************************************
  
var origin1 =document.getElementById("txtsrc1").value;
alert(origin1);
var destinationA=document.getElementById("txtdest1").value;
var origin2=document.getElementById("txtsrc2").value;
var destinationB=document.getElementById("txtdest2").value;
alert(origin2);

//*** Uncommnet the below line if you are passing Latitude and logitude value***//
//***************www.dotnetcode.in******************************************

//var origin1 =new google.maps.LatLng(document.getElementById ("txtsrc1").value);
//var destinationA=new google.maps.LatLng(document.getElementById ("txtdest1").value);
//var orgin2=new google.maps.LatLng(document.getElementById ("txtsrc2").value);
//var destinationB=new google.maps.LatLng(document.getElementById ("txtdet2").value);

        var service = new google.maps.DistanceMatrixService();
        service.getDistanceMatrix(
          {
            origins: [origin1, origin2],
            destinations: [destinationA, destinationB],
            travelMode: google.maps.TravelMode.DRIVING,
            unitSystem: google.maps.UnitSystem.METRIC,
            avoidHighways: false,
            avoidTolls: false
          }, callback);
      }

      function callback(response, status) {
        if (status != google.maps.DistanceMatrixStatus.OK) {
          alert('Error was: ' + status);
        } else {
          var origins = response.originAddresses;
          var destinations = response.destinationAddresses;
          var outputDiv = document.getElementById('outputDiv');
          outputDiv.innerHTML = '';
          deleteOverlays();

          for (var i = 0; i < origins.length; i++) {
            var results = response.rows[i].elements;
            addMarker(origins[i], false);
            for (var j = 0; j < results.length; j++) {
              addMarker(destinations[j], true);
              outputDiv.innerHTML += origins[i] + " to " + destinations[j]
                  + ": " + results[j].distance.text + " in "
                  + results[j].duration.text + "<br />";
            }
          }
        }
      }

      function addMarker(location, isDestination) {
        var icon;
        if (isDestination) {
          icon = destinationIcon;
        } else {
          icon = originIcon;
        }
        geocoder.geocode({'address': location}, function(results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
            bounds.extend(results[0].geometry.location);
            map.fitBounds(bounds);
            var marker = new google.maps.Marker({
              map: map,
              position: results[0].geometry.location,
              icon: icon
            });
            markersArray.push(marker);
          } else {
            alert("Geocode was not successful for the following reason: "
              + status);
          }
        });
      }
     
      function deleteOverlays() {
        if (markersArray) {
          for (i in markersArray) {
            markersArray[i].setMap(null);
          }
          markersArray.length = 0;
        }
      }

    </script>

</head>
<body onload="initialize()">
 <form id="form1" runat="server">

    <div id="inputs">
        <pre class="prettyprint">
<%--var origin1 = new google.maps.LatLng(55.930385, -3.118425);
var origin2 = "Greenwich, England";
var destinationA = "Stockholm, Sweden";
var destinationB = new google.maps.LatLng(50.087692, 14.421150);--%>
      </pre>
        <div>
            Source 1<asp:TextBox ID="txtsrc1" runat="server"></asp:TextBox>
            Destination 1<asp:TextBox ID="txtdest1" runat="server"></asp:TextBox>
        </div>
        <div>
            Source 2<asp:TextBox ID="txtsrc2" runat="server"></asp:TextBox>
            Destination 2<asp:TextBox ID="txtdest2" runat="server"></asp:TextBox>
        </div>
        <p>
            <button type="button" onclick="calculateDistances();">
                Calculate distances</button></p>
    </div>
    <div id="outputDiv">
    </div>
    <div id="map">
    </div>
    </form>
</body>
</html>

To find the particular place ,we can use place name directly or we have to Latitude or Longitude value in the textbox..So when using Latitude and Longitude we need to change the below code in java script..
//var origin1 =new google.maps.LatLng(document.getElementById ("txtsrc1").value);
//var destinationA=new google.maps.LatLng(document.getElementById ("txtdest1").value);
//var orgin2=new google.maps.LatLng(document.getElementById ("txtsrc2").value);
//var destinationB=new google.maps.LatLng(document.getElementById ("txtdet2").value);

I hope everyone like this article..Post your comments here….