title: How do i hide my variable name from address URL bar?
body: <p>I'm passing value to-and-fro controller and view in MVC. The thing is, if possible i wanted to hide my variable name from the URL/address bar from users seeing it. I've tried route config and did as below:</p>
  
  <pre><code>routes.MapRoute(
          name:="Default2",
          url:="{controller}/{action}",
          defaults:=New With {.controller = "home", .action = "Lookup"}
  )
  routes.MapRoute(
          name:="Default",
          url:="{controller}/{action}/{id}",
          defaults:=New With {.controller = "home", .action = "Lookup", .id = UrlParameter.Optional}
  )
  </code></pre>
  
  <p>I've also tried below, i know it looks quite absurd but i tried anyway.</p>
  
  <pre><code>routes.MapRoute(
          name:="Default2",
          url:="{controller}/{action}",
          defaults:=New With {.controller = "home", .action = "Lookup"}
  )
  routes.MapRoute(
          name:="Default",
          url:="{controller}/{action}/{id&amp;name}",
          defaults:=New With {.controller = "home", .action = "Lookup", .id = UrlParameter.Optional}
  )
  </code></pre>
  
  <p>I tried both. Instead of hiding the variable i passed as parameters in the controller, it hides my controller and action, and just showed the variable name. </p>
  
  <pre><code>http://localhost:11111/?id=P59068&amp;name=Nurul
  </code></pre>
  
  <p>I was hoping it would display like this instead:</p>
  
  <pre><code>http://localhost:11111/home/Lookup/P59068&amp;Nurul
  </code></pre>
  
  <p>I've seen several websites showing like above but i don't know if what i'm doing is the right thing to achieve what i want. What am i doing wrong? Can anyone help me please?</p>