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….@@@
I followed the given below steps for solve this issue,
1) Jquery code is
2) I created a new .aspx page & write given below server side(C#) code in GET Method(Page load) for solve this issue
It will open the RDP window from client’s browser download option….
So, this is the one type of solution for this issue…