title: Open RDP Connection window using jquery - client side
body: <p>Is there any way to open RDP Connection window using jquery(client side) ?</p>
  
  <p>My jquery code is given below,</p>
  
  <pre><code>$(function () {
          $(".RDPLink1").live('click', function () {
              var IPAddress = $(this).attr('id');  // ip or name of computer to connect
  
              $.ajax({
                  type: 'post',
                  cache: false,
                  data: { strIPAddress: IPAddress },
                  url: '&lt;%=Url.Action("OpenRDPWindow","Home") %&gt;',
                  success: function (data) {                        
                  }
              });
          });
  </code></pre>
  
  <p>I call the <strong>Home</strong> controller method, name is <strong>OpenRDPWindow</strong>, like</p>
  
  <pre><code>    public void OpenRDPWindow(string strIPAddress)
      {            
          Process objProcess = new Process();
          string exe = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\system32\mstsc.exe");
          if (exe != null)
          {               
              objProcess.StartInfo.FileName = exe;
              objProcess.StartInfo.Arguments = "/v " + strIPAddress;   // ip or name of computer to connect
              objProcess.Start();
          }            
      }
  </code></pre>
  
  <ul>
  <li><p>Actually my need is, When the user click the href link in my page, we
  need to open RDP Window based on IPAddress...</p></li>
  <li><p>In my system using VS2010, it is working fine &amp; it's open the RDP<br>
  Window based on IPAddress, because i wrote the code in Server side(C#)<br>
  to my system ...</p></li>
  <li><p>After i deploy the project in IIS, then user click the href link, the
  RDP(mstsc.exe) was running in Server machine(where i deploy my<br>
  application).</p></li>
  <li><p>But i need to open the RDP window in user machine (Client side)...</p></li>
  </ul>
  
  <p>How do i solve this using jquery or javascript? (or)  Is there any other way to solve this issue?</p>
  
  <p>Thanks in advance....@@@</p>