title: Passing parameters in URL ASP.NET
body: <p>I am creating an <code>ASP.NET MVC</code> application which will be shown in clients like <code>WindowsPhone</code>, <code>iOS</code>, <code>Android</code> apps in a <code>WebView</code> control or <code>iFramed</code> in other websites. I want to control some behavior and styles differently for my <code>ASP.NET</code> application depending on the client requesting my site.</p>
  
  <p>One way I can achieve this is passing this information through headers like <code>ClientType=WindowsPhone</code> etc. and reading the header value where ever I need. But I am thinking if there is a clean way I can pass this information in URL. Something like </p>
  
  <p><a href="https://www.example.com/windowsphone/Manage/Index" rel="nofollow">https://www.example.com/windowsphone/Manage/Index</a><br>
  <a href="https://www.example.com/ios/Manage/Index" rel="nofollow">https://www.example.com/ios/Manage/Index</a></p>
  
  <p>and read the client type from the URL where ever needed in my code.
  I was confused if <code>RouteConfig</code> can help me here.</p>