473,664 Members | 3,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling Remote Desktop on click of link from .aspx page

AnuSumesh
96 New Member
Hi,

I am using following code for calling terminal services on page load.

<html>
<head><title>
Untitled Page
</title>
</head>
<body id="ctl00_Pageb ody">

<form name="aspnetFor m" method="post" action="rdptry. aspx" id="aspnetForm" >
<div id="ContentArea " class="ContentA rea">

<div id="ctl00_Conte ntPlaceHolder1_ Panel1" style="height:7 5%;width:100%;o verflow:auto;">
<div id="ctl00_Conte ntPlaceHolder1_ connectArea"><c enter><object id="MsRdpClient " name="MsRdpClie nt" classid="clsid: 7584c670-2274-4efb-b00b-d6aaba6d3850" codebase="msrdp .cab#version=5, 2,3790,1830" runat="server" width="540" height="400"></object></center></div>
<script type="text/VBscript" language="VBscr ipt" runat="server">
Sub MsRdpClient_OnD isconnected(dis connectCode)
history.go(-1)
End Sub
</script><script type="text/VBscript" language="VBscr ipt" runat="server">
Sub RdpConnect()
MsRdpClient.Ser ver="server"
MsRdpClient.Dom ain=""
MsRdpClient.Use rName="anu"
MsRdpClient.Adv ancedSettings2. ClearTextpasswo rd="pwd"
MsRdpClient.Ful lScreen=0
MsRdpClient.Wid th="540"
MsRdpClient.Hei ght="400"
MsRdpClient.Des ktopWidth="540"
MsRdpClient.Des ktopHeight="400 "
MsRdpClient.Adv ancedSettings2. RedirectDrives= 0
MsRdpClient.Adv ancedSettings2. RedirectPrinter s=1
MsRdpClient.Adv ancedSettings2. RedirectPorts=0
MsRdpClient.Adv ancedSettings2. RedirectSmartCa rds=0
if (MsRdpClient.Se curedSettingsEn abled) Then
MsRdpClient.Sec uredSettings.St artProgram=""
End If
MsRdpClient.Ful lScreenTitle="1 72.20.31.118"
MsRdpClient.Con nect()
End Sub
</script>
<script type='text/VBscript' language='VBScr ipt'>
call RdpConnect
</script>
</div>
</div>
</div>
</form>
</body>
</html>


It is giving error: Object required 'MsrdpClient '.

But when I am deifning <OBJECT> tag before the <Form> tag, then it is working fine.
I am using Master page concept here 'n' thus i want to call rdp inside the contentplacehol der so that RDP will open within the space provided.

If i am using outside contentplacehol der, then i m losing my main page.

What can be the proble,?

Why <form> tag creating problem?
Can anyone help me?

Thanks in advance.
Regards,
Anu
Mar 3 '08 #1
0 2494

Sign in to post your reply or Sign up for a free account.

Similar topics

3
8263
by: JonBoy | last post by:
As some of you may know from my previous posts I am trying to set up an internet page on our intranet that contains logoff/shutdown and restart buttons. This needs to work in a remote desktop situation which rules out various options. Anyway I found an application called shutdown.exe (http://www.budja.com/shutdown/) that does work in a remote desktop environment. Next stage is to call this .exe from a webpage...which I'm struggling...
2
2187
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. I've found a way that works on the web, and I'm trying to get it to also work in debug mode in the IDE. The "on the web" page and my SQL database are hosted by a third party (on separate servers). Since debug mode opens IE and loads my page...
2
2167
by: Don Dodge | last post by:
Hello, a while ago (probably late 2004), an IT person of a client pointed to a download on MSDN (I believe, it was definitely MS). This downloaded enhanced the administrative tools Remote Desktop to give me a much more powerful tool, that allows me to keep multiple remote servers in a window on the left hand side and right click on them to connect and disconnect. It bring me into the current console logon, so that I do not start a new logon...
8
1297
by: matt | last post by:
hello, i work on a private enterprise intranet. we now have a business need for opening other desktop applications, from my web app's click events. (my application is not entirely complete, so when user's click some of the absent-functionality, we need the desktop app to fire up). some of these apps are started via the command-line. is this possible? i imagine so, even if it meant working w/ ActiveX controls or whatnot.
10
5783
by: cleo | last post by:
I am migrating from VB6/Access to Visual Basic and SQL Express. I have success writing test code on my local machine and am now setting up tests for deployment to a server. I have installed SQL Express on a Windows 2003 Server. I can connect and create databases on the Remote Server from my local machine using SQL Management Express, so I know Remote Access is working. However, I am unable to connect using a connection string within...
15
7068
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter every second. I remote desktop to the computer hosting this application and run the application. It starts up and displays the counter incrementing every second. If I disconnect the network cable between the two computers for 10 seconds and...
4
2478
by: JDS | last post by:
I am a newbie to asp.net but have done traditional vb, asp and vb.net - please forgive any dumb questions! As a test I have a very simple page (Default.aspx) with a single button which then redirects to a second page (MemberReport.aspx) using Response.Redirect. I have the code working on a remote machine as localhost and the same code running on the server as localhost both with no problems. However, when I try to access the pages on the...
6
5071
by: Bob Altman | last post by:
Hi all, This is a long shot, but I figure it doesn't hurt to ask... I have some applications that work fine when I run them on my PC at work, but "fail to initialize (0x000005)" when I'm attached to that PC from home via Remote Desktop. These applications are all console apps written in native C++. The common thread (at this point I've done no serious investigation) seems to be that they all call into a C++/CLI library that, in...
1
4573
by: Keland | last post by:
I am useing XP pro. Since installing dotnet 3.5 and SP3 I get a error message when I try to connect to my office useing remote desktop. The e/m is Terminal Services Active X control (mstscax.dll) does not match the version of the client shell. Can you tell me what I have to do or update to get my Remote desktop to work again. Thanks Ken
0
8861
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.