Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8282921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:33:11+00:00 2026-06-08T10:33:11+00:00

Is there any way to open RDP Connection window using jquery(client side) ? My

  • 0

Is there any way to open RDP Connection window using jquery(client side) ?

My jquery code is given below,

$(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: '<%=Url.Action("OpenRDPWindow","Home") %>',
                success: function (data) {                        
                }
            });
        });

I call the Home controller method, name is OpenRDPWindow, like

    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();
        }            
    }
  • Actually my need is, When the user click the href link in my page, we
    need to open RDP Window based on IPAddress…

  • In my system using VS2010, it is working fine & it’s open the RDP
    Window based on IPAddress, because i wrote the code in Server side(C#)
    to my system …

  • 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
    application).

  • But i need to open the RDP window in user machine (Client side)…

How do i solve this using jquery or javascript? (or) Is there any other way to solve this issue?

Thanks in advance….@@@

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:33:12+00:00Added an answer on June 8, 2026 at 10:33 am

    I followed the given below steps for solve this issue,

    1) Jquery code is

    $(function () {
        $(".RDPLink1").live('click', function () {
            var IPAddress = $(this).attr('id');  // ip or name of computer to connect
            window.location.href="http://path/home/OpenRDP?address="+IPAddress ;            
        });
    });
    

    2) I created a new .aspx page & write given below server side(C#) code in GET Method(Page load) for solve this issue

    [HttpGet]
    public ActionResult OpenRDP()
    {
            string address = Request.QueryString["address"];
            Response.ContentType = "application/octet-stream";
            Response.AppendHeader("Content-Disposition", string.Format("attachment; filename={0}.rdp", address));
            Response.Output.Write(string.Format(@"
    screen mode id:i:2
    session bpp:i:32
    compression:i:1
    keyboardhook:i:2
    displayconnectionbar:i:1
    disable wallpaper:i:1
    disable full window drag:i:1
    allow desktop composition:i:0
    allow font smoothing:i:0
    disable menu anims:i:1
    disable themes:i:0
    disable cursor setting:i:0
    bitmapcachepersistenable:i:1
    full address:s:{0}
    audiomode:i:0
    redirectprinters:i:1
    redirectcomports:i:0
    redirectsmartcards:i:1
    redirectclipboard:i:1
    redirectposdevices:i:0
    autoreconnection enabled:i:1
    authentication level:i:2
    prompt for credentials:i:0
    negotiate security layer:i:1
    remoteapplicationmode:i:0
    alternate shell:s:
    shell working directory:s:
    gatewayhostname:s:
    gatewayusagemethod:i:4
    gatewaycredentialssource:i:4
    gatewayprofileusagemethod:i:0
    promptcredentialonce:i:1
    drivestoredirect:s:E:;
    use multimon:i:0
    audiocapturemode:i:0
    videoplaybackmode:i:1
    connection type:i:2
    redirectdirectx:i:1
    use redirection server name:i:0", address));
    
            Response.End();
            return View();
    }
    

    It will open the RDP window from client’s browser download option….

    So, this is the one type of solution for this issue…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to open a new window with a specified URL using
Is there any way to open a new window or new tab using PHP
Is there any way to know for events when move a window with window.open?.
Is there any recommended way to open a file using Symfony? I'm trying to
Is there any way to open an Application by typing a code (like *#06#
Is there any way to open a new activity as a popup window on
Is there any way to open the menu option via the code, sort of
Is there any way to open a new window with, var newWindow = window.open(...);
Is there any way to open a browser window with a specified URL, then
Is there any way to open the MenuInflater using the onClick call? if you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.